Hello, I know the following PHP script to for Background Music for website. You can make use of this in your source. This will give you the different music as per the conditions satisfaction. In the path section you need to provide the path of the music file.
Code:
<php
if(rand(0,3)==0)
{
echo '
<bgsound src="<path>" loop="infinite">';
}
elseif(rand(0,2)==0)
{
echo '
<bgsound src="<path>" loop="infinite">';
}
elseif(rand(0,1)==0)
{
echo '
<bgsound src="<path>" loop="infinite">';
}
else
{
echo '
<bgsound src="<path>" loop="infinite">';
}
?>
Bookmarks