Jump to content


Add mUsic

  • Please log in to reply
3 replies to this topic

#1 borgqueenx

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 01 July 2006 - 05:13 PM

I want to add an midi tone in a php code file, how?
And i want to loop the music file.

#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 01 July 2006 - 05:21 PM

You cant do this with PHP. You have to use HTML. Look into the embed tag.

Also I am moving this to the HTML Help Forum.

#3 X.Cyclop

  • New Members
  • Pip
  • Newbie
  • 7 posts
  • LocationMexico City

Posted 02 July 2006 - 06:19 PM

With Windows Media Player:

<object CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" NAME="MC1" ID="MC1" height="204" width="480" bbclient="1">
  <param NAME="FileName" 
  <param NAME="AutoStart" VALUE="True">
  <param NAME="ShowStatusBar" VALUE="True">
  <param NAME="ShowGotoBar" VALUE="False">
  <param NAME="TransparentAtStart" VALUE="True">
  <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp?tcode=9#location2" 
src="file.midi" name="MC1" height="204" width="480" AutoStart="True" ShowStatusBar="True" ShowGotoBar="Talse" TransparentAtStart="true" bbclient="0"> 
<object> is for Internet Explorer.
<embed> is for Netscape/Firefox. ;)
"Don't think about the work, think about the benefit"

Leonardo Juszkiewicz

#4 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 07 July 2006 - 11:35 AM

If you are going to add background music on your website, make sure you can turn it off, because I believe many people, like myself, find it extremely annoying.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users