<script type="text/javascript">
function getCookie(NameOfCookie)
{
if (document.cookie.length > 0)
{
begin = document.cookie.indexOf(NameOfCookie+"=");
if (begin != -1)
{
begin += NameOfCookie.length+1;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end));
}
}
return null;
}
function setCookie(NameOfCookie, value, expiredays)
{
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}
</script>
<?PHP
if(isset($_GET['r'])){
if($_GET['r'] == 0){
$url = "http://www.omroep.nl/radio1/live64.asx";
}elseif($_GET['r'] == 1){
$url = "http://www.omroep.nl/radio2/live64.asx";
}elseif($_GET['r'] == 2){
$url = "http://www.omroep.nl/radio3/live64.asx?radio3fm";
}elseif($_GET['r'] == 3){
$url = "http://www.omroep.nl/live/radio/radio4-bb.asx";
}elseif($_GET['r'] == 4){
$url = "http://www.omroep.nl/live/747am-breed.asx";
}elseif($_GET['r'] == 5){
$url = "http://www.rnw.nl/distrib/realaudio/ram/live/rnw_live_1.asx";
}elseif($_GET['r'] == 6){
$url = "mms://wm1.streaming.castor.nl/100pctnl=wm2";
}elseif($_GET['r'] == 7){
$url = "http://www.garnierstreamingmedia.com/asx/streamerswitch.asp?stream=205";
}elseif($_GET['r'] == 8){
$url = "http://www.garnierstreamingmedia.com/asx/streamerswitch.asp?stream=204";
}elseif($_GET['r'] == 9){
$url = "http://streams.kpnwebcast.nl/cgi-bin/reflector.cgi?stream=kpnmms_bnr,kpnmms_bnr2&title=BN.nl+live+radio";
}elseif($_GET['r'] == 10){
$url = "http://www.garnierstreamingmedia.com/asx/caz_audio_01.asp";
}elseif($_GET['r'] == 11){
$url = "http://217.196.35.12/asx/classicfm.asx";
}elseif($_GET['r'] == 12){
$url = "http://www.funx.nl/live/funx.asx";
}elseif($_GET['r'] == 13){
$url = "http://ms.stream.garnierprojects.com/kinkfm";
}elseif($_GET['r'] == 14){
$url = "http://www.q-music.nl/asx/q-music.asx";
}elseif($_GET['r'] == 15){
$url = "http://www.radiodigitaal.nl/asx/radio10gold/10high.asx";
}elseif($_GET['r'] == 16){
$url = "http://www.radiodigitaal.nl/asx/radio538/538stream.asx";
}elseif($_GET['r'] == 17){
$url = "http://217.196.35.12/asx/skyradio.asx";
}elseif($_GET['r'] == 18){
$url = "http://www.true.nl/streams/slamfmlivestream.asx";
}elseif($_GET['r'] == 19){
$url = "http://217.196.35.12/asx/tmfradio.asx";
}elseif($_GET['r'] == 20){
$url = "http://217.196.35.12/asx/radioveronica.asx";
}else{
$cookie = "1";
}
}else{
$cookie = "1";
}
if($cookie == 1){
?>
<object id='mediaplayer'
classid='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6'
type='application/x-oleobject' width='100' height='100'>
<param name='url' value='<script type="text/javascript">document.write(getCookie("Defaultchanel"))</script>' />
<param name='autostart' value='1' />
<param name='showcontrols' value='1' />
<param name='stretchtofit' value='0' />
<param name='enablecontextmenu' value='0' />
<param name='ShowStatusBar' value='1'>
<param name='BufferingTime' value='2'>
<embed
src='<script type="text/javascript">document.write(getCookie("Defaultchanel"))</script>' width='0'
height='0'
autostart='1' type='application/x-mplayer2'
pluginspage='http://www.microsoft.com/Windows/MediaPlayer/'
transparentatstart='0'
animationatstart='0'
showcontrols='1'
autosize='0'
displaysize='0'
showtracker='0'
ShowStatusBar='1'></embed>
</object>
<?
}else{
?>
<body onload="setCookie('Defaultchanel', '<?=$url?>', 365)">
<object id='mediaplayer'
classid='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6'
type='application/x-oleobject' width='100' height='100'>
<param name='url' value='<?=$url?>' />
<param name='autostart' value='1' />
<param name='showcontrols' value='1' />
<param name='stretchtofit' value='0' />
<param name='enablecontextmenu' value='0' />
<param name='ShowStatusBar' value='1'>
<param name='BufferingTime' value='2'>
<embed
src='<?=$url?>' width='0'
height='0'
autostart='1' type='application/x-mplayer2'
pluginspage='http://www.microsoft.com/Windows/MediaPlayer/'
transparentatstart='0'
animationatstart='0'
showcontrols='1'
autosize='0'
displaysize='0'
showtracker='0'
ShowStatusBar='1'></embed>
</object>
<body>
<?
}
1.634 views
ik gebruik de volgende code, maar de player speelt niet het laatste radiozender