View Full Version : need help with a link code

03-22-2005, 09:17 PM
I am trying to make a link code that when you role over it with the mouse it plays a song or sound anyone now how to do it

03-22-2005, 09:26 PM
you could do it easyly in dreamweaver by using behavior..

03-22-2005, 09:26 PM
For us to help you, you have to help us.

Which scripting languages are you intending to use? What sound format is going to be played?

The use of correct spelling, proper sentences and plenty of information is always a sure way to get help: give us a lot, and you'll get a lot.

And welcome to the forums :) .

03-22-2005, 09:27 PM

mp3, mid, or wma

03-22-2005, 09:28 PM
what is dreamweaver

03-22-2005, 09:33 PM
what is dreamweaver
ROFL :D . Google (http://www.google.com/search?q=dreamweaver) is your friend ;) .

03-22-2005, 09:38 PM
and the link help i gave you what you needed

03-22-2005, 09:58 PM
oh and also wav

03-23-2005, 08:08 PM
please help me that is all the info i can give. So please supply me with an HTML code

03-24-2005, 10:09 AM
Hi, just download Dreamweaver from google and try that. Like the other boy said its in behaviour

03-24-2005, 10:24 AM
You can't do that with pure HTML
(i dont think, and i get 19/20 in the W3schools test - and i self learned it, without their lessons)

you would have to use java (if you dont use something like dreamweaver/Net objects etc)

in the link you would have to put the event 'OnMouseOver: <insert script name here>' and have a script that uses java to play a sound, because it is hard to get HTML to play a sound through a background player

unfortunately i don know much java, so i cant give you a script, i an only tell you what it would look like:


<script type="Javascript">

(javascript code here, for playing the file -which i dont know)



<a href="ADDRESS" onMouseover: 'Ping'>

that is roughly how it shouldbe set out :P

sorry i couldnt help out more

03-24-2005, 11:56 AM
It's Javascript, not Java. That's a programming language. But you're right about using the onmouseover attribute. I don't know Javascript so you're better of asking here (http://www.codingforums.com/forumdisplay.php?f=2).

However, I'd like to point out that doing this will increase your loading time A LOT, and it also breaks the accessibility. But I guess you don't care anyway...

03-24-2005, 12:31 PM
so you're better of asking here
Whoa there, buckaroo!

Please don't cross-post; I'll ask a moderator to move this post to the appropriate forum since a JavaScript solution does seem like the most feasable one.