Rollovers! Animation! Etc!
If you return to http://codey.net.au/webclass/10.html you will notice that the sun, bird, and three of the rocks in the water change their appearance if you put your cursor over them.
The code to do this is
onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Original Image','','Alternate Image',1)"≥≤img src="the other image" name="Original Image Name" width="whatever" height="whatever" border="0"
Which dreamweaver adds in ALL BY ITSELF which is unquestionably awesome.
That said, making the alternative images is really fiddly in photoshop, using "Export for web and devices" to get the original page and similar for the alternate images which invariably seem to be .gif images...
Now this was the incredibly creepy animation I did: I was only supposed to move the eyes a little, with tweening and all that... but I got distracted.

Wheee! Click for movement!
No comments:
Post a Comment