This post has been edited by NOCKZEE: 17 February 2008 - 09:53 PM
BACKGROUND MUSIC FOR SITE WITH PHP
Page 1 of 15 Replies - 10243 Views - Last Post: 18 February 2008 - 05:07 AM
#1
BACKGROUND MUSIC FOR SITE WITH PHP
Posted 17 February 2008 - 05:43 AM
How to give background music for a site using php ?
Replies To: BACKGROUND MUSIC FOR SITE WITH PHP
#2
Re: BACKGROUND MUSIC FOR SITE WITH PHP
Posted 17 February 2008 - 10:22 AM
does it have to be in php? a simple <embed> or <bgsound> tags will do the job. i guess you could incorporate php into it. say if you want to play random sounds(which can also be done with js), but youll still probably use html tags to play the sounds.
#3
Re: BACKGROUND MUSIC FOR SITE WITH PHP
Posted 17 February 2008 - 10:43 AM
As dontKnowJava pointed out, the easiest way is to use the <EMBED> HTML tag. You could incorporate this into your PHP code if you want by using echo, something like:
Granted that is a very simplified version of the <EMBED> object, at that link it shows many more attributes you can use.
Hope that helps
echo "<embed src=\"YourFile.wav\" id=\"YourID\" hidden=\"true\">"
Granted that is a very simplified version of the <EMBED> object, at that link it shows many more attributes you can use.
Hope that helps
#4
Re: BACKGROUND MUSIC FOR SITE WITH PHP
Posted 17 February 2008 - 09:58 PM
Thanks all,
One more question, if I want to put the background music on WP, where should I place the code ? ( on which file? since I see several options : stylesheet, style, header ...... ? or somewhere else? )
One more question, if I want to put the background music on WP, where should I place the code ? ( on which file? since I see several options : stylesheet, style, header ...... ? or somewhere else? )
#6
Re: BACKGROUND MUSIC FOR SITE WITH PHP
Posted 18 February 2008 - 05:07 AM
WP = wordpress
I want to make a site using wp and I want to have a background music
that plays when people open the site. Is it possible?
I want to make a site using wp and I want to have a background music
that plays when people open the site. Is it possible?
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|