Well the error is in... Internet Explorer - How surprising!
Well this works perfectly fine in Firefox, but Internet Explorer is having none of it.
The error in IE is:
document.getElementById(...) is null or not an object
My radio player code is:
My Javascript code is:HTML Code:<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" name="player" width="167" height="40" standby="Loading" codebase="http://www.habbcrazy.net/CODEBASE=http:/activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"> <param name="player" id="radio_player" url="http://www.habbcrazy.net" value="true" /> <param name="CONTROLS" value="Imagewindow" /> <param name="ShowStatusBar" value="false" /> <param name="src" id="radio_src" value="http://habbcrazy.net:8002/" /> <param name="url" id="radio_url" value="http://habbcrazy.net:8002/" /> <param name="autostart" value="true" /> <param name="autoplay" value="true" /> <param name="Controls" value="playbutton" /> <param name="uimode" value="mini" /> <embed id="radio_embed" src="http://www.habbcrazy.net/pages/radio/mediafile.asx" showstatusbar="false" controls="playbutton" autostart="True" width="167" height="40" autostart="True" controls="playbutton" showstatusbar="false" url="http://www.habbcrazy.net/pages/radio/mediafile.asx" showstatusbar="false" controls="playbutton" autostart="True" autoplay="true" uimode="mini" /> </object>
As you can see, all the ids exist :SCode:function refresh_radioplayer() { document.getElementById('radio_src').value = "http://habbcrazy.net:8002/"; document.getElementById('radio_url').value = "http://habbcrazy.net:8002/"; document.getElementById('radio_embed').src = "http://www.habbcrazy.net/pages/radio/mediafile.asx"; document.getElementById('radio_embed').url = "http://www.habbcrazy.net/pages/radio/mediafile.asx"; }





Reply With Quote


