mattyz
11-05-2003, 03:05 PM
What i want to create is a rollover script that can play a sound and change the image when rolled over. I also what to use the same code for different images / sounds. eg. i want button one to change to buttopn1a and play sound 1 and button two to change to 2a and play 2... etc etc any one help please :)
zachzach
11-05-2003, 05:30 PM
<img src="not_moused_on_yet.gif" onmouseover="this.src='moused_over.gif'" onmouseout="this.src='not_moused_on_yet.gif'">
that references the object's "src" proportie, and changes it. You can make it do a sound by making it change the image src(or a invisible image) to a sound file(they made the <img> tag where you can make the src a audio or image file!Weird, huh?I would think they'd make a tag like: <audio> or <sound> or something, but hey, who cares?lol)