Lab 5—Your First JavaScripts

Adjust the speed of change


1. The speed of change from photo to photo is set by 3 * 1000 in this line of the script:

setTimeout("rotate()", 3 * 1000);

2. To speed up the change, reset the speed to 2 * 1000, and save the file. View it in Firefox. What do you think?

3. Try it at 1 * 1000, save it, and preview it in the browser..

4. Try it at 5 * 1000, save it, and preview it in the browser..

5. Which speed looks best with your image and intent as a Web designer? Reset the speed to your preferred speed.


Optional. If you have an object, like the Fluency text that is rectangular inside your image's frame, try filling the background of the image so it matches the page background. See the example on the next page.

Use image-editing software like GIMP.

 

previous page   next page

 

 

Ad Banner