HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

image zones
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> Images & Graphics
View previous topic :: View next topic  
Author Message
CATHE



Joined: 26 Jul 2005
Posts: 2
Location: FRANCE

Posted: Wed Jul 27, 2005 1:11 am     image zones  

Hello !

I created an image and then created zones in it to use as links to websites when overmoused. I want the zones to also produce a sound when overmoused. Is it possible ?

Thanks for your help !


Corey Bryant



Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

Posted: Wed Jul 27, 2005 4:07 am      

This is an image map you might be referring to? If so, save this as sounds.js (replace button.au with the path / name to your media file):
Code: function soundOne() {
  document.all.sound1.src =
"/sounds/button.au"}
Insert it into your page in the <head>
Code: <script src="/javascripts/sounds.js">
</script>
correcting the path to the sounds.js file as you have placed it in your root.

And then add:
Code: OnMouseOver="soundOne()
to the a href property so that you have something like:
Code: <a class="nav" href="default.asp" OnMouseOver="soundOne()">
CATHE



Joined: 26 Jul 2005
Posts: 2
Location: FRANCE

Posted: Thu Jul 28, 2005 2:52 am      

Thank you for your help, I will try .
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> Images & Graphics
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group