1
tripnosis
Adding background music?
  • 2005/12/1 17:29

  • tripnosis

  • Just popping in

  • Posts: 42

  • Since: 2005/4/28


I am trying to find a way to have a small audio clip play when the home page loads. I have treied using HTML tags, but all of them only work in IE. I know you can do this with flash, but I am still learning flash. So...is there any XOOPS solution? a hack or module that might make it work? I am using the debaser module, with the "popular file" block. It seems there should be a simple hack that would make the file play when the page loads, but I can't figure it out.

Any help is greatly appreciated
"There is no element of genius, without some form of insanity."
Lyra Design
Vote Trip in '06!

2
coopersita
Re: Adding background music?

I don't see why you would want to do that... it can be very annoying, but here's the code that will work in most platforms:

<object type="audio/x-mpeg" data="sound.mp3" height="20" width="250">
  <
param name="autostart" value="true" />  
  <
img src="nomp3.gif" width="200" height="100" alt="Sorry, you don't have the necessary plugin to hear mp3s" />
object>


If you don't want the controller bar, make the width and height to 0.

If it's something other than an mp3, you need to change the type to match the mime-type. You can find the correct mime-type at http://www.1extreme.net/mimetype.html

Give it a try.

Login

Who's Online

374 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 374


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits