|
|
| Author |
Message |
Teddy_Bear
New User
Joined: 11 Apr 2005
Posts: 14
|
Posted: July 1st 2009, 12:05 am Post subject: MP3 on main index page |
|
|
Just wondering if anyone knows a code that will work on the main index page of a forum to play an mp3 and do I edit the index php to achieve this? I also looked at overall header and footer but anything I tried to embed didn't seem to work. Thanks for your help  |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Teddy_Bear
New User
Joined: 11 Apr 2005
Posts: 14
|
Posted: July 2nd 2009, 7:17 pm Post subject: |
|
|
Hi Patrick
Tried a few codes.
<embed src="my mp3 url was here" autostart="true" loop="false" width="300" height="42" controller="true" bgcolor="#FF9900"></embed>
This was for a flash player:
<embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" quality="high" width="300" height="52" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url=[MP3 file address]" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>
Tried bgsound code as well, to no avail.
Thanks for your help. |
|
| Back to top |
|
 |
lumpy burgertushie
Dedicated User

Joined: 05 Apr 2008
Posts: 589
|
Posted: July 3rd 2009, 4:19 pm Post subject: |
|
|
try this:
| Code:
|
<embed src="yourfilename.mp3" type="application/x-mplayer2" autostart="true" playcount="true" loop="true" height="0" width="0">
|
put this in the index_body.html page at the very top.
it should play in FF and IE both.
be sure to edit to reflect your mp3 file name.
this will start automatically and loop for infinity but only while you are on the index page.
robert _________________ here is my sig file....... |
|
| Back to top |
|
 |
Teddy_Bear
New User
Joined: 11 Apr 2005
Posts: 14
|
Posted: July 3rd 2009, 10:34 pm Post subject: |
|
|
| lumpy burgertushie wrote:
|
try this:
| Code:
|
<embed src="yourfilename.mp3" type="application/x-mplayer2" autostart="true" playcount="true" loop="true" height="0" width="0">
|
put this in the index_body.html page at the very top.
it should play in FF and IE both.
be sure to edit to reflect your mp3 file name.
this will start automatically and loop for infinity but only while you are on the index page.
robert
|
Thanks for your help Robert. It still didn't work for me. I put the code at the top of index_body.html also tried it in the overall header and footer. |
|
| Back to top |
|
 |
lumpy burgertushie
Dedicated User

Joined: 05 Apr 2008
Posts: 589
|
Posted: July 4th 2009, 9:27 am Post subject: |
|
|
can you give me alink to wherever you are trying this please.
I tested this on my test board and it works just fine.
robert _________________ here is my sig file....... |
|
| Back to top |
|
 |
Teddy_Bear
New User
Joined: 11 Apr 2005
Posts: 14
|
Posted: July 7th 2009, 11:04 pm Post subject: |
|
|
Thanks guys, I got it working  |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
|