Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound on Roll Over(With UltraDev) 1

Status
Not open for further replies.

JBell99

Programmer
May 28, 2001
31
US
I need to have a little one second sound play when someone scrolls over certain links on my site, I have done this already with flash but i am also making a non-flash version of the site, can someone please tell me how to make a sound play when a rollover image(used as a link)is scrolled over...and without using flash. If you wanna know what i need it for then i'll tell you, the site is based on Final Fantasy and when someone scrolls over a link the menu hand appears and then i need that selection sound to play....like it does in the menu, the flash version works fine..now i need help with the non flash version.
 
OK, here is the code...


=============================
<head>
<script language=&quot;javascript&quot;>
<!--
function playSound(Sname){
if (document.embeds[Sname] != null && document.embeds[Sname].IsReady()) {
document.embeds[Sname].play(false)
}
}
-->
</script>
</head>
<body>
<a href=&quot;javascript:void('')&quot; onMouseover=&quot;playSound('bang')&quot;>play sound</a>

<EMBED SRC='bang.au' name=&quot;bang&quot; hidden=true loop=false austostart=false mastersound>

===============

Hope I haven't made any typo's

Good luck

Steve
Steve Davis
hey.you@hahaha.com.au
 
dude.....that worked!!!!!!! do have any idea how amazed i was???? Would you like some credit on my site, I can post a notice on the site saying how you helped me if you want...
 
OK, I want a 600 x 150 banner at the top of every page. I want $1 for every click through and I want my name included in every page of source code...

just kidding, I got the code from a book so you are welcome to it...but you can give me a vote here if you like.

Glad it worked. Steve Davis
hey.you@hahaha.com.au
 
oh..the first thing i did when the code worked(besides jump up and down and kiss my girlfriend..I really did, i have been messing with this thing for like a month now, i was so happy to get it to work) was to come back here and give ya my vote..by all means you deserve it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top