Back to BuildingBlocks Index or press "h"
Insert this into the <head> section of your page. If you're using your own images, change "up.gif" and "down.gif" to your images' file names.<script language="javascript1.2"> <!-- img1=new Image() img1.src="up.gif" img2=new Image() img2.src="down.gif" //--> </script>Finally, insert the below into the <body> section of your page:
<a href="whatever.htm" onMousedown="document.images['example'].src=img2.src" onMouseup="document.images['example'].src=img1.src"><img src="up.gif" name="example" border=0></a>If you want multiple depressible images within one page, simply repeat steps 2 and 3 for each depressible image. When repeating step 2, be sure to change the image file names in the code to reflect the images you're using. When repeating step 3, be sure to change the part in blue ('example') to another unique name.
Back to BuildingBlocks Index or press "h"