True/False:
1) FALSE
2) TRUE
3) TRUE
4) FALSE
5) FALSE
Fill in the Blank
1) An event is a system-level response to the occurrence of some specific condition.
2) A function is nothing more than a segment of JavaScript code that can be called, just like the document.write() method.
3) An image rollover is created with the help of the onMouseOver onMouseOut events.
4) A JavaScript variable is nothing more than a name that is assigned to a literal value or to an object.
5) Cycling banners are also known as ad banners.
Written Questions
1) What is a JavaScript event? How are events generated?
Events are generated when a certain condition occurs in the browser, ex. the mouse is over an image or the page loads. Events allow JavaScript code to be fired when the event is fired, and events are generated at the system level.
2) What is a JavaScript function? How does a function differ from a method?
A method is a certain procedure to accomplish something in JavaScript, whereas a function is a certain block of code that can be fired by calling the function.
3) How does an image rollover differ from a hyperlink rollover?
An image rollover differs from a hyperlink rollover in the fact that the rollover happens over an image in the document (embedded using the <img> tag) and a hyperlink rollover occurs when the mouse hovers over a hyperlink (embedded using the <a> tag).
4) What is a cycling banner? Why is it called cycling?
A cycling banner is a banner that repeatedly changes every few seconds, or by user command. It is called cycling because once all the images are gone through, it repeats the images it displayed before, creating a cycle of images being displayed.
5) What is the purpose of the Math object methods random() and floor()?
Random() is used to generate a random floating point number that can be used for certain things that require a random number, floor can be used to round a floating point number downwards to the nearest whole number.
6) What is a JavaScript electronic slide show?
A JavaScript electronic slide show is a JavaScript feature that allows the user to browse through a list of images, click next and previous to see images.