Exercises
To further explore the JavaScript features you learned about in this hour, you can perform the following exercises:
Modify the random number script in Listing 8.1 to run three times, calculating a total of 15,000 random numbers, and display separate totals for each set of 5,000. (You'll need to use another for loop that encloses most of the script.) Visit the Script.aculo.us page at http://script.aculo.us/ to find the complete list of effects. Modify Listing 8.2 to add buttons for one or more additional effects.
|