<p>CSCE 102 ―EXAM Study Guide No hats are allowed during the test so don’t wear a hat on test days. You must bring your Id to the test. </p><p>Cascading Style sheets • Setting the style with CSS • Using local styles • Using classes and ids with style sheets User defined tags • Using <div> and <span> Images • Using images Anchor Tag • Creating a hyperlink using the anchor element (<a ... >. . . </a>) • When is the path name necessary? • Creating an image that is a link Tables • Creating a table • Using colspan and rowspan *JavaScript • What Type of language is JavaScript? • * Data Types; examples, using • *Alerts, prompts (built in functions (Methods) of the windows object) • Creating a button using HTML and clicking it to execute JavaScript • Using event handlers to execute JavaScript from within HTML elements • *Changing CSS properties using JavaScript • Objects and properties • Which are the objects, which are the properties? Example: document.body.style. backgroundColor object object object property • *Writing functions • *Calling Functions • The purpose of functions • Naming and using functions • Executing functions • What is a parameter? How and why are they used?(in class notes) • *Using parameters • Purpose of parameters • What is a variable? • Naming variables • *Using the assignment statement • *Logical flow with assignments, comments and functions • The properties of the document object • Changing properties of the page document.body.style.backgroundColor document.body.style.color • *Concatenation • The methods toLowerCase() toUpperCase() • *Using this. To change the current element • *Using getElementById in your notes and in lab assignment • *innerHTML − Changing the text in HTML elements on that have already been loaded on the page, in your notes and on lab assignment • *document.write • *Image rollover • Creating image rollovers • Textboxes • Know how to create a textbox in HTML • *Know how to access the information in a textbox • *Know how to display new information in a textbox • Math with textboxes • *Know what parseFloat() does and how and why to use it addition, subtraction, multiplication, and division • * Know how to write the code to average numbers, • *Know how to write the code to calculate a grade using weights • Math methods (Math.) from your notes • *If statements • Write the code to create an if statement. • Know how to use both relational and logical operators • *Know which part of the code is executed if the condition in the if statement is true/false. • *Loops • For loops • While loops • Do while loops • Do you understand the code from class and from the last lab? • Slide Show - In class notes - Do you understand it? • Radio buttons, check boxes, and pull down menus; In class notes • Difference between the checkboxes and the radio buttons • Guess the Number Problem – In class notes - Understanding the logic in code • Coin Flip Problem Caution code copied from Word may not work. <form name="x" id="x"> <h2> My Random Number </h2> <input type="text" name="t1" id="t1"> <input type="button" name="b1" id="b1" value="coinflip" onclick="coinflip()"> <input type="text" name="t2" id="t2"></p><p></form></p><p></p><p><script> var rannum, roundednum function coinflip() {rannum=Math.random(); document.getElementById("t1").value=rannum; roundednum=Math.round(rannum); document.getElementById("t2").value=roundednum; if (roundednum==1) {document.getElementById("flip").src="coin_heads.bmp" } else {document.getElementById("flip").src="coin_tails.bmp" }</p><p>} </script></p><p>What to study: Your class notes (code used in class and Especially the notes from the review - what will be on the test.), the study guide, the lab assignments, the code from lab, our web page, text books </p><p>*It is on the test.</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages2 Page
-
File Size-