4 Replies - 4063 Views - Last Post: 10 June 2009 - 07:53 AM

#1 lonestarkid  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-June 09

sound with on mouse over firefox browser

Posted 09 June 2009 - 01:05 PM

I am using Firefox. I have tried to use embed and bgsound to get a background sound when I open a page on my website,and neither appear to work. I tried a solution I read in one of the posts Here is the code I tried [code] <body background="../graphics/parchment.jpg">
<!--bgsound id="audio" src="../soundmusic/colt45.mp3" loop="1"></bgsound-->
<embed src="../soundmusic/colt45.mp3" autostart="true" loop="true" hidden="true"></embed>[code]

The embed code asks for a quicktime helper application to be downloaded with a big square on the web page. Thanks in advance for any help you can give me!

As a second idea I was thinking about putting a sound to a button onmouseover selection
Paul

Is This A Good Question/Topic? 0
  • +

Replies To: sound with on mouse over firefox browser

#2 crazyjugglerdrummer  Icon User is offline

  • GAME OVER. NERD WINS.
  • member icon

Reputation: 119
  • View blog
  • Posts: 690
  • Joined: 07-January 09

Re: sound with on mouse over firefox browser

Posted 09 June 2009 - 02:42 PM

The problem is with the browser's ability to play your background sound. You need to install the needed plugin. Try using different browsers or managing the media settings for IE, :D
Was This Post Helpful? 0
  • +
  • -

#3 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3034
  • Posts: 10,598
  • Joined: 08-August 08

Re: sound with on mouse over firefox browser

Posted 09 June 2009 - 02:44 PM

I think you want play-during:
http://www.quackit.c...play-during.cfm
Was This Post Helpful? 0
  • +
  • -

#4 forest51690  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 58
  • View blog
  • Posts: 340
  • Joined: 20-March 09

Re: sound with on mouse over firefox browser

Posted 09 June 2009 - 06:35 PM

Try this HTML:
<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="annoy.wav" />
</object>


Also, look into using some kind of flash music player, which you could find online
Was This Post Helpful? 0
  • +
  • -

#5 lonestarkid  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-June 09

Re: sound with on mouse over firefox browser

Posted 10 June 2009 - 07:53 AM

I downloaded quicktime and now when I use the embed code the sound plays. YEAH! First question: Do other viewers now get the emb box asking for a download when they view my page if they don't have quicktime on their computer? Second question: I have created a nice back button that is actually a picture surrounded by an href. I want to somehow call a function to drive the same sound from the href "back" picture.

I did find the css code to call from a function including the embed code with a reference to a span tag. However I couldn't seem to get that to work.
Thanks again for your replies!!
Paul

below are my attempts
	function playsound()
	 		{
	 		document.getElementById("dummy").innerHTML= "
	 		<embed src=\"../soundmusic/colt45.mp3\" autostart=\"true\" loop=\"false\" hidden=\"true\"></embed>

			  }


<body background="../graphics/parchment.jpg">
<!--bgsound id="audio" src="../soundmusic/colt45.mp3" loop="1"></bgsound-->
<!--embed src="../soundmusic/colt45.mp3" autostart="true" STARTTIME="00:05" ENDTIME="00:25" hidden="true"></embed-->
<embed src="../soundmusic/colt45.mp3" autostart="true" loop="false" hidden="true"></embed>
<span id="dummy"></span>
<!--embed src="../soundmusic/colt45.mp3" /-->
<a href="java script:history.back()" "><img ID=button663 src="photos/WWcoltpeacemakerback.jpg" width=65 height=35
onmouseover='document.getElementById("button663").src="photos/WWcoltpeacemakerbackover.jpg"'
onmouseout='document.getElementById("button663").src="photos/WWcoltpeacemakerback.jpg"; document.getElementById("dummy").innerHTML= "
	 		<embed src=\"../soundmusic/colt45.mp3\" autostart=\"true\" loop=\"false\" hidden=\"true\"></embed>"'></a>  





I tried adding the document reference at the end of the onmouseout
As you can tell I am just experiementing, (fishing in the dark... ha!)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1