Quote:One question though - is there a way to have the player play continuously when you are going from page to page inside the torrent site? It sucks to have the player start playing only to have it stop when you click on a torrent or some other page...
Quote:Works Great, thank you for this...Is there a way to make an option to pop it out? If you have a button to press to pop out the player, then you can use other pages as well. Just a suggestion, and would be a great addition
here is a PopUp for MP3 Player:
first create a file and call it Player.html
insert in Player.html this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Player</title>
</head>
<body bgcolor="#18222E">
<script>
function MP_ResizeContainer(id,w,h){
var container = document.getElementById(id)
container.style.width = w+"px"
container.style.height = h+"px"
}</script>
<div id="preview_button" style="width:250px; height:130px">
<object type="application/x-shockwave-flash"
data="http://yoursite.com/player.swf?&
container_id=preview_button&
button_width=17&
button_height=17&
menu_width=250&
menu_height=130&
repeat=true&
shuffle=true&
playlist_url=http://yoursite.com/mp3/list.xml&
playlist_size=15&
first_track=5&
b_bgcolor=18222E&
b_fgcolor=18222E&
b_colors=0055ff,00ff00,ff0000,ffffff&m_colors=000055,000055,ffffff,444444,888888,ffffff,000000,18222E&"
width="100%" height="100%">
<param name="movie"
value="http://yoursite/Flash/player.swf?&
container_id=preview_button&
button_width=17&
button_height=17&
menu_width=250&
menu_height=130&
repeat=true&
shuffle=true&
playlist_url=http://yoursite/mp3/list.xml&
playlist_size=15&
first_track=5&
b_bgcolor=18222E&
b_fgcolor=18222E&
b_colors=0055ff,00ff00,ff0000,ffffff&m_colors=000055,000055,ffffff,444444,888888,ffffff,000000,18222E&" />
<param name="wmode"
value="transparent" />
</object>
</div>
</body>
</html>
*Edit link to your list.xml and player.swf
upload the Player.html in root
open MP3_block.php and add under:
echo "</object>\n";
this:
?>
<a href="java script:popUp1('http://yoursite.com/Player.html')">MP3 Player PopUp</a>
<?
*Edit link to your Player.html
open your header header.php
and add this befor </head>
<script type="text/javascript">
function popUp1(wintype)
{
var nwl = (screen.width-250)/2;
var nwh = (screen.height-150)/2;
popUp=window.open(wintype, ' Mp3 Player', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,width=250,height=150,left='+nwl+',top='+nwh+'');
}
</script>
Have Fun
greeting
Juleika