Dreamweaver Play Sound Behavior Problem!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

UnderRated

Thread Starter
Joined
Jan 11, 2006
Messages
1
Hello.
I'm trying to use the play sound behavior when the mouse "rollover" a link.
I have selected the link and selected the mouseOver event.
Then when I go to my browser to test this, it asks me if I want to download the sound and my security thing comes up... Is there a way around this, what can i do???
I've seen people say to do this in flash but I don't want to use flash.
I'm using dreamweaver, i just want a tiny sound every time a link is rolled over.
Can someone help me on this???
Thanks so much for your time,

Josh(y)
 
Joined
Apr 14, 2001
Messages
2,382
Perhaps this is what your looking for?

<script><!--

function playTune() {
document.all.base.src = "sound.mp3"
}
//-->
</script>

then your link is
<img src="path/to/your/images/image.jpg" onmouseover="playTune()">

You can add a mouseout tune too
add to the script;

function playTune2() {
document.all.base.src = "soundtwo.mp3"
}

and add to the link;

onmouseout="playTune2()">

EDIT:
I also found this just now, maybe it will work too?
http://www.entheosweb.com/website_design/play_sound.asp
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top