Visual Vision **User's** Forum (the fast) (http://www.easywebeditor.com/cgi-bin/forum/YaBB.pl)
Our Products >> EasyWebEditor / 1site >> Linking Sounds !?!
(Message started by: Jene Mueller on Sep 23rd, 2003, 12:12am)

Title: Linking Sounds !?!
Post by Jene Mueller on Sep 23rd, 2003, 12:12am
Help,

I've inserted an audio clip onto my start page...
but how do I link a sound to an image so that when i mouse over it, it plays !?!

Jene

Title: Re: Linking Sounds !?! to a mouse over
Post by Support Staff on Sep 23rd, 2003, 5:17am
you can do this by adding a javascript call.

FIrst of all you should write a script that can play music and insert it within the page with "Insert >HTML" (please use a JS book, or search it on a free Javascript site).

It will be something like:
<script>
myplaymusic() {
...
...
play("UseTheRightSideButtonToPlaceAReferenceToTheSoundHere")
...
</script>

(be aware that where the script requires a filename you should place a file reference with the proper button you find on the right side of the Insert >HTML dialog; that reference will be dinamically replaced by the file name; this is done so you won't have to care about the file name)


Then, right click on the image, "Properties", HTML tab, and insert this code:
onMouseOver="javascript:myplaymusic()"





Visual Vision **User's** Forum (the fast) » Powered by YaBB 1 Gold - SP1!
YaBB © 2000-2001, XNull. All Rights Reserved.
This forum © 2001-2010 VisualVision and VisualVision Users