Sound mouse over menu button HELP!

  • 1
  • Question
  • Updated 7 years ago
  • Answered
I have got this far for a HTML nu B. the sound plays when I click on it but does not go to the home page:( I would like to have the sound play on mouse over and when clicked go to the specified page. Where am I going wrong?
www.thedogtrainingacademy101.com
The button is on the About us page.




Photo of Penny

Penny

  • 6 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Penny

Penny

  • 6 Posts
  • 0 Reply Likes
Where can I post the actual code?
Photo of Nazlie

Nazlie

  • 1721 Posts
  • 51 Reply Likes
Hi Penny

You can post it here. Please add the code in this format:

<!-- code here -->

Otherwise it will not show up on the post.
Photo of Penny

Penny

  • 6 Posts
  • 0 Reply Likes
I fixed it:) YAY:) I think I came up with a simple solution ,so far so good.
http://www.thedogtrainingacademy101.c...

<!--<script language="javascript" type="text/javascript">
function playSound(soundfile) {
document.getElementById("lick.wav").innerHTML=
"<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
loadImage1 = new Image();
loadImage1.src = "resources/PUPLICKANI.gif";
staticImage1 = new Image();
staticImage1.src = "resources/BONE1.jpg";

// End -->
<!-- </script>

<span id="lick.wav"></span>
<p onmouseover="playSound('resources/lick.wav');"></p>
<a href="http://thedogtrainingacademy101.com/i..." onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="resources/BONE1.jpg" border=0></a>

--> -->
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
Hi Penny,

I get this when I look at the page (in Firefox)



Lee.
Photo of David

David

  • 465 Posts
  • 94 Reply Likes
Me to, I choose not to have the firefox javascript plugin installed so be aware Penny that some people like myself and UK Duke will not be able to view your content.
Photo of Penny

Penny

  • 6 Posts
  • 0 Reply Likes
I get no sound in internet explorer:( Any fixes?
Photo of David

David

  • 465 Posts
  • 94 Reply Likes
You probably haven't got the windows media player addon installed, is there any prompts at the bottom of the page
Photo of Penny

Penny

  • 6 Posts
  • 0 Reply Likes
How do I fix that? UK Duke, any ideas?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
It's a nice idea but I would just add a mp3 widget from the editor.

Videos and sound should be invoked from a click - If the user wants to listen to it they have the choice if they don;t they don't.

Best practice.

Lee. http://hexham.info