PDA

View Full Version : Two mouse-over commands


polliwogfrog
12-07-2002, 12:57 PM
Have some javascript from first page that is an "on mouseover". I
would like to add another "on mouseover command" to the same one, the second being a .wav file. Can I do this, and how?
Polliwog
:joy:

ByteWizard
12-07-2002, 01:22 PM
There is a script in FP called "Image Rollover with sound" that appears to do exactly what you want. Straight from FP...

<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<SCRIPT>
<!--
function over(){
document.scooby.src="yourmouseoverimage"
document.location.href='yourmouseoversound'
}

function out(){
//document.location.href='yourmouseoutsound'
document.scooby.src="yourmouseoutimage"
}

//-->
</SCRIPT>
</HEAD>
<A HREF="#" onMouseOver="over()" onMouseOut="out()">
<IMG SRC="dg0.gif" NAME="scooby" WIDTH=50 HEIGHT=45 BORDER=0></A>
<!-- END OF SCRIPT -->

polliwogfrog
12-07-2002, 04:55 PM
Thank you!!!!
Where did you find that Wizard????
polliwog
:joy:

polliwogfrog
12-07-2002, 09:26 PM
oh...LOL!
I am not as good at this stuff as most of you guys, so did not realize that was right there in front of me! Thanks dbindle
polliwog
:joy:

ByteWizard
12-08-2002, 05:47 AM
Click on the script icon in the toolbar for a list of all scripts in FP. There are a number of categories with scripts in each one.