This is an multi-station radio that is open into a pop-up window.
So you can navigate anywhere with your browser without affecting in any way the radio window.
Even if you close your browser, the radio will still work.
online-radio.php:
<?php
require_once("backend/functions.php");
dbconn(false);
loggedinonly();
$th = @mysql_fetch_array(@sql_query_exec("select uri from stylesheets where id=".$CURUSER["stylesheet"]));
if ($th)
$THEME = $th[uri];
?>
<link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/theme.css" />
<script type="text/javascript" src="backend/java_klappe.js"></script>
<div style="margin-top:15px; margin-bottom:10px" align="center">
<script type="text/javascript">
<!--
function song(){ document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='400' height='64' controltype='1' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>"; }
//-->
</script>
<div id="jukebox" style="margin-top:10px">
<select id="cancion" onchange="song()" size="1">
<option value="none"> Select Station </option>
<option value="http://asculta.radiomafia.ro:8000"> Radio Mafia </option>
<option value="http://stream.radiozu.ro:8020"> Radio ZU </option>
<option value="http://live.radio-hit.ro:8585"> Radio HIT </option>
<option value="http://radiobeat.ro:8000"> Radio BEAT </option>
<option value="http://80.86.106.136:80"> Kiss FM </option>
</select>
<div style="margin-top:15px">
<span id="music1">
<embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
width="400"
height="64"
controltype="1"
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</embed>
</span>
</div>
</div>
</div>
online-radio_block.php:
<?
begin_block("Online Radio");
print ("<div style="margin-top:5px" align="center">");
print ("<table>
<tr>
<td>
<a href="javascript:void(0);" onclick="window.open('/online-radio.php', 'mywindow5', 'width=450, height=130, menubar=no, toolbar=no, scrollbars=no');">
<img src="images/online-radio.png" border="0">
</a>
</td>
</tr>
</table>");
print ("</div>");
end_block();
?>
However, these files are already included in the online-radio.zip archive.
All you need to do is to upload all files included in this archive into your root (public_html).
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6920"]online-radio.zip[/url]

So you can navigate anywhere with your browser without affecting in any way the radio window.
Even if you close your browser, the radio will still work.
online-radio.php:
<?php
require_once("backend/functions.php");
dbconn(false);
loggedinonly();
$th = @mysql_fetch_array(@sql_query_exec("select uri from stylesheets where id=".$CURUSER["stylesheet"]));
if ($th)
$THEME = $th[uri];
?>
<link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/theme.css" />
<script type="text/javascript" src="backend/java_klappe.js"></script>
<div style="margin-top:15px; margin-bottom:10px" align="center">
<script type="text/javascript">
<!--
function song(){ document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='400' height='64' controltype='1' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>"; }
//-->
</script>
<div id="jukebox" style="margin-top:10px">
<select id="cancion" onchange="song()" size="1">
<option value="none"> Select Station </option>
<option value="http://asculta.radiomafia.ro:8000"> Radio Mafia </option>
<option value="http://stream.radiozu.ro:8020"> Radio ZU </option>
<option value="http://live.radio-hit.ro:8585"> Radio HIT </option>
<option value="http://radiobeat.ro:8000"> Radio BEAT </option>
<option value="http://80.86.106.136:80"> Kiss FM </option>
</select>
<div style="margin-top:15px">
<span id="music1">
<embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
width="400"
height="64"
controltype="1"
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</embed>
</span>
</div>
</div>
</div>
online-radio_block.php:
<?
begin_block("Online Radio");
print ("<div style="margin-top:5px" align="center">");
print ("<table>
<tr>
<td>
<a href="javascript:void(0);" onclick="window.open('/online-radio.php', 'mywindow5', 'width=450, height=130, menubar=no, toolbar=no, scrollbars=no');">
<img src="images/online-radio.png" border="0">
</a>
</td>
</tr>
</table>");
print ("</div>");
end_block();
?>
However, these files are already included in the online-radio.zip archive.
All you need to do is to upload all files included in this archive into your root (public_html).
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6920"]online-radio.zip[/url]




