<script language="JavaScript">
<!--
var isMac = (navigator.userAgent.indexOf("Mac") != -1);
var isIE = (navigator.userAgent.indexOf("MSIE") != -1);
var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
function testForActiveXPlayer(){
if(document.layers && (!document.documentElement)){return false} //exclude NS4 which can't handle try/catch blocks
if(document.all){return true} //IE family post 4 will have activeX and IE4 can't handle try/catch
if(player){return player;} //we don't want to spawn players willy-nilly
try{
if(window.ActiveXObject){
return new ActiveXObject("WMPlayer.OCX.7");
}else if (window.GeckoActiveXObject){
return new GeckoActiveXObject("WMPlayer.OCX.7");
}else {
return false;
}
} catch(oError) { return false; }
}
function testForPlugin() {
if(document.layers){return navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;} //NS family always have mimeTypes
if(document.all){return false} //IE should use activeX objects
try{
if(navigator.mimeTypes){
return navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;
}
}catch (oError) { return false;}
}
function setPage() {
self.focus()
}
var subtitleWidth = 0;
var subtitleHeight = 0;
var transportBar = 0;
transportBar = 58;
var minWidth = 280;
function resize(w,h) { //take in the height and width of the plugin window
if(minWidth < subtitleWidth){
minWidth = subtitleWidth;
}
var contentFurnitureHeight = 64; //the sum height of the html elements on the page EXCLUDING the video window
if(w < minWidth){
width = minWidth;
}else{
width = w;
}
height = h + (contentFurnitureHeight + transportBar + subtitleHeight);
resizeForContentSize(width,height);
}
function resizeForContentSize(contentWidth,contentHeight) {
var titleBar = 26;
var windowBarWidth = 0;
var statusHeight = 0;
var xpSecurityInfo = 23;
var firefoxStatus = 23;
var flickoverMargin = 20; //for mozilla which puts scrollbars on the window by default unless it's oversized first
if(navigator.platform == 'Win32'){
windowBarWidth = 12;
titleBar = 32;
statusHeight = 6;
}
if(document.all){
statusHeight += xpSecurityInfo; //for security zone info on MSIE
}else if(document.layers){
statusHeight = 0;
}
height = contentHeight + titleBar + statusHeight;
width = contentWidth + windowBarWidth;
if (!(document.layers || document.all)){
height += firefoxStatus;
window.resizeTo(width + flickoverMargin , height + flickoverMargin);
}
window.resizeTo(width , height);
}
fullscreen_on = new Image();
fullscreen_on.src = '/mediaselector/images/en/fullscreen_on.gif';
<!-- Real Embed SSITool (Embed pt1 of 2) v1.1 - do not copy, see http://intracat/ssi/ for usage -->
<script language="Javascript">
<!-- //
var ssit_RealPresent=0;
var ssit_RealPlayer4=0;
var ssit_RealPlayer5=0;
var ssit_RealPlayerG2=0;
var ssit_bIsMac5=((navigator.appVersion.indexOf("Macin tosh") != -1) && (navigator.appVersion.indexOf("MSIE 5") != -1));
var ssit_bIsOpera=(navigator.userAgent.indexOf("Opera" ) != -1);
if ((navigator.userAgent.indexOf("MSIE")<0 ) || (ssit_bIsMac5) || (ssit_bIsOpera)) {
numPlugins = navigator.plugins.length;
for (ssit_i = 0; ssit_i < numPlugins; ssit_i++) {
plugin = navigator.plugins[ssit_i];
if ((plugin.name.indexOf("RealPlayer") != -1) || (plugin.name.indexOf("RealOne") != -1) || (plugin.name=="rpnp.so")){
ssit_RealPresent=1;
}
}
}
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1) && (!ssit_bIsOpera)){
document.writeln(' <script language="VBScript"> ');
document.writeln(' on error resume next ');
document.writeln(' ssit_RealPlayerG2 = (NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control"))) ');
document.writeln(' ssit_RealPlayer5 = (NOT IsNull(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)"))) ');
document.writeln(' ssit_RealPlayer4 = (NOT IsNull(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)"))) ');
document.writeln(' <\/script> ');
}
// Set Mac IE3 and IE4 opt-out - attempts to play regardless
var ssit_bIsMac = ((navigator.appVersion.indexOf("Macintosh") != -1) && ((navigator.appVersion.indexOf("MSIE") != -1) && (!ssit_bIsMac5)));
// End Mac IE3/4 opt-out
if (ssit_RealPresent || ssit_RealPlayerG2 || ssit_RealPlayer5 || ssit_RealPlayer4 || ssit_bIsMac)
{
document.write ('<object id="rp1" name="rp1" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="144" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="ImageWindow"><param name="console" value="av"><embed name="rp1" id="rp1" border="0" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width="192" height="144" autostart="true" controls="ImageWindow" console="av" type="audio/x-pn-realaudio-plugin"></embed></object><noembed><a href="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram">Play the clip in RealPlayer</a></noembed>'); }
else {
document.write('<div class="downloadPrompt" align="left"><font size="1" color="#00FF66"><b>Your browser has not detected a RealPlayer plugin. It may be that you need to download RealPlayer or adjust your browser settings.<br><br>');
document.write('For help downloading or upgrading RealPlayer for free, visit our <a href="http://www.bbc.co.uk/radio/audiohelp.shtml?focuswin" target="_blank" class="downloadLink">audio/video help</a> page<br><br>');
document.write('Alternatively you can try to <a href="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" class="downloadLink">play the clip in the standalone player</a> or <a href="http://www.bbc.co.uk/mediaselector/check/media/video/otdvideo/86/05/03/3118_03-05-86?bgc=6699CC&nbram=1&bbram=1&size=4x3&news=1&pref s=1" onclick="changePrefs()" class="downloadLink">change your preferences</a>.</b></font></div>');
}
function setFullScreen() {
if (isIE) {
playerObj = "document.all.rp1";
} else {
playerObj = "document.embeds['rp1']";
}
playState = eval(playerObj + ".GetPlayState()");
if((playState==0) || (playState==1)) {
alert("A clip must be started before you can set it to full size.");
}
else {
alert("Switching to fullscreen mode...\n\n(Press Esc to return to the desktop)");
eval(playerObj +".SetFullScreen()");
}
}
//function setFullScreen() {
//playState = document.rp1.GetPlayState();
// if((playState==0) || (playState==1)) {
// alert("A clip must be started before you can set it to full size.");
// }
// else {
// alert("Press Esc to return to the original size.");
// document.rp1.SetFullScreen();
// }
//}
Ok Install went good for me, many people are tuning in (>40 a day). However... On "Online Users" it says "Unknown Location - vbradio.php". Is there anyway of making it say "Listening to the Radio".
Ok Install went good for me, many people are tuning in (>40 a day). However... On "Online Users" it says "Unknown Location - vbradio.php". Is there anyway of making it say "Listening to the Radio".
hack to add custom WOL loactions...works a treat..and the best is, u can call em wot u want...heh heh..open to abuse if ya wanna get ure own back on a member....lol