View Full Version : Help!!


rainbow_loser
07-19-2003, 12:04 AM
This code I'm using for having music on my page isn't working for some reason...When I click play, it doesn't play...

http://doa.beheldnature.com/testing/indextest.html

its the white frame underneath the top picture...this is the code for the first "music" pg...i dont understand whats wrong..

<center><input style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; FONT-SIZE: 10pt; BORDER-LEFT: 1px; BORDER-BOTTOM: 1px; FONT-FAMILY: webdings; background:#FFFFFF; foreground:#FFFFFF" onClick=document.music.DoPlay() type=button value=4 name=buttonstart>
<input style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; FONT-SIZE: 10pt; BORDER-LEFT: 1px; BORDER-BOTTOM: 1px; FONT-FAMILY: webdings; background:#FFFFFF; foreground:#FFFFFF" onClick=document.music.DoPause() type=button value=; name=buttonpause>
<input style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; FONT-SIZE: 10pt; BORDER-LEFT: 1px; BORDER-BOTTOM: 1px; FONT-FAMILY: webdings; background:#FFFFFF; foreground:#FFFFFF" onClick=document.music.DoStop() type=button value="<" name=buttonstop>
<embed src="http://beheldnature.com/DOA/testing/mp3/GoSailorRayofSunshine.mp3" hidden="true" align="baseline" border="0" width="1" height="1"
name="music" type="mp3" loop="true" repeat="false" autostart="false">
</embed></center>

thats the code for the music thing...and it wont play....HELP!!

PinkSparkler321
08-11-2003, 08:57 PM
make sure that you have the correct link for your music source. If that doesn't work, check your code to make sure that there are no errors in it. :)

Stormx
08-12-2003, 04:04 PM
I am not familiar with the way this script works. I'll look it up 4 u...

OK, document.music does not exist. You need to tell us who gave you this script

toolman
08-13-2003, 05:36 PM
Instead of using a script, you could do it simply with links and a small iframe.

All you need to do is insert a small iframe somewhere on your page out of the way of the content. You can then have links such as Play, Stop, Next etc. To start the music you need to tell the 'play' link to open up in the iframe by using a target. You could name the page that opens up in the iframe 'play.htm'. On this page, you set the background music, so when the user clicks on 'play' the page with music playing opens up.

Does that make sense?