Anyone who knows mouseover.. pleaseee help

Hi,

Help me figure out how to add a sound file to the mouse over command. Please. I dont know anything about mouseover or java stuff.

I guess this is a table command? anyways, Paint shop pro makes it.


<TD ROWSPAN="1" COLSPAN="1" WIDTH="152" HEIGHT="72">
<A HREF="http://www.x.com/1d/1d.html" onMouseOver="if(document.images) document.aa3.src=''1b_2x1.jpg'
onMouseOut="if(document.images) document.aa3.src='1a_2x1.jpg';"
><IMG NAME="aa3" SRC="1a_2x1.jpg" WIDTH="152" HEIGHT="72" BORDER="0"></A></TD>

please copy and paste this to a txt file, edit it to show me how to simply add sound to this existing code and that way i can just change the sound name. Im thinking wav or wma.


Thanks guys. I want to add really small data sound files to the menu buttons. So when people pass over, they say "Download" or make a click sound.
 
I always hate to suggest something other than what someone is trying to do. But if you would like a flash button let me know, i can build them for you.
 
EddieLeonardo said:
I always hate to suggest something other than what someone is trying to do. But if you would like a flash button let me know, i can build them for you.


I, really appreciate that. Thats nice of you. Im trying to avoid flash. My goal, is to make a page that looks flash but without the flash button. Flash is pretty good, about not forcing updates all the time, like some other programs, but if someone doesnt have flash I dont want to discourage them from having to download.

:)
 
KG--

I found this at a Free Online Javascript library:


<!-- ONE STEP TO INSTALL CLICK SOUND:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- Original: Nicholas Loar (anarchy@cass.net) -->
<!-- Web Site: http://anarchy.yi.org -->

<center>
<a href="#" onMouseOver="document.all.music.src='talk.wav'">You Talkin' To Me?</a><p>
<a href="#" onMouseOver="document.all.music.src='laugh.wav'">Laughing</a><p>
<a href="#" onMouseOver="document.all.music.src='shoot.wav'">Come Out</a><p>
<a href="#" onMouseOver="document.all.music.src='sweet.wav'">Sweet</a><p>
<a href="#" onMouseOver="document.all.music.src='hell.wav'">Go To Hell!</a><p>
<bgsound src="#" id=music loop=1 autostart="true">
</center>

<p><center>
<font face="arial, helvetica" SIZE="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.77 KB -->


Just replace their .wav file code with your own sounds.
 
Also, with the statement of: music.src='hell.wav'"

hell.wav has to be in the same directory where the page is being pulled from, unless you give it the path like "..\sounds\hell.wav" or something like that
 
You might want to look into doing your mouseover stuff with CSS.. It's lower bandwidth (and yes, even with everyone getting high speed access these days, low bandwidth is important, if not MORE important) And if all you're gonna do is a color change for a roll over link or something, it's all you really need.


Here's a CSS Mouseover link generator Looks like they've got some other handy tools there too.

Here's some other CSS info to get you started..
 
John@Bophe said:
KG--

I found this at a Free Online Javascript library:


<!-- ONE STEP TO INSTALL CLICK SOUND:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- Original: Nicholas Loar (anarchy@cass.net) -->
<!-- Web Site: http://anarchy.yi.org -->

<center>
<a href="#" onMouseOver="document.all.music.src='talk.wav'">You Talkin' To Me?</a><p>
<a href="#" onMouseOver="document.all.music.src='laugh.wav'">Laughing</a><p>
<a href="#" onMouseOver="document.all.music.src='shoot.wav'">Come Out</a><p>
<a href="#" onMouseOver="document.all.music.src='sweet.wav'">Sweet</a><p>
<a href="#" onMouseOver="document.all.music.src='hell.wav'">Go To Hell!</a><p>
<bgsound src="#" id=music loop=1 autostart="true">
</center>

<p><center>
<font face="arial, helvetica" SIZE="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.77 KB -->


Just replace their .wav file code with your own sounds.

Thanks. But what i was hoping was for someone to take the code I posted and amend a way to add sound to that existing code. I wouldnt know where to merge this code in with my existing code. I want the button to change over and at the same time have a sound.

it's difficult to convey what it is Im trying to do. Most people just tell me to make a flash button. I can do that, but flash requires a plugin. alot of people dont even like flash because of security issues.

:)
 
Will Vincent said:
You might want to look into doing your mouseover stuff with CSS.. It's lower bandwidth (and yes, even with everyone getting high speed access these days, low bandwidth is important, if not MORE important) And if all you're gonna do is a color change for a roll over link or something, it's all you really need.


Here's a CSS Mouseover link generator Looks like they've got some other handy tools there too.

Here's some other CSS info to get you started..


cool, thanks. Here is my website. there is just a test page.


www.hobbyfilms.com

it links to my old paskday site. you can see what Im trying to do. If you roll over the download button, i not only want the flash effect of the button changing but to have my own personal click sound.

ill check out that generator.

And thanks Knightly and Coot for your input, as well.
 
Your source code seems a little strange.. What did you use to create the page... I don't remember seeing an IF statement in a mouseover command before???
 
Back
Top