4a.18. Testing the CD rankings (again)Once you've finished up addToTop5 in your JavaScript, fire up your web browser again. Load the Top 5 web page, and click on some CD covers. You should see rankings show up, overlaid on the top left corner of each CD cover. The absolute positioning in CSS makes sure these appear on top of the cover, adding a nice visual bit of eye candy to the page. Click Click Click Now the CDs in the Top 5 listings have rankings... thanks to the magic of JavaScript, the DOM, and a little CSS.
Now you just need to update top5.html, and set the "Start Over" button to call your completed startOver() function: <form><p> <input type="button" value="Start Over" onClick ="startOver();" />Always remember to connect your HTML buttons and elements to your JavaScript code. </p></form> |