Fill in the blanks with the letter of the correct term from the list on the right. You may use the list of Javascript terms on my website as well as your book. Terms may be used more than once. Read the scripts at the bottom of this page and give the best term to describe the red area of the script for each numbered questionIgnore the numbers of course. They are not part of the script.. Write your letter answers next to the corresponding numbers of the html document immediately below.
| My Answers | Answer Choices(use the letter) |
1.
| A. function B. conditional C. variable D. method E. operator F. event handler G. value H. string I. statement J. object K. comment L. property |
<SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from old browsers
1.if (document.images) {
minred = new Image
minblue = new Image
minred.src = 'bh2.JPG'
minblue.src = 'bh1.JPG'
}
1.else {
minred = ""
minblue 2.=""
3.document.min = ""
}
// End hiding script from old browsers -->
</SCRIPT>
4.adImages = new Array("images/banner1.gif","images/banner2.gif","images/banner3.gif")
thisAd = 0
imgCt = adImages.length
function 5.rotate() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adBanner.6.src=adImages[thisAd]
setTimeout("rotate()", 3 * 1000)
}
}
// End hiding script from old browsers -->
</SCRIPT>
8./* I am creating an array of images and running them through the function rotate to do a slide show. 3 variables are created.*/
9.myPix = new Array("pathfinder.gif","surveyor.gif","surveyor98.gif")
thisPic = 0
imgCt = 10.myPix.length - 1
11.function processPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}
function processNext() {
if (document.images && thisPic < imgCt) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}
// End hiding script from old browsers -->
</SCRIPT>
12.alert("Welcome to my JavaScript page!")
alert(13."Thanks for visiting!")
// End hiding script from old browsers -->
</SCRIPT>
Do a File....Save As....Firstname.Lastname.exjsterm.htm an extra copy of your completed document into the Exercise jsterm folder on the server. Open up your exercise on the server in a browser to make sure it appears the way your want it.