Hi, I am trying to add a javascript to my website and have the used both the script feature and the html feature of bluevoda. The javascript is generated from http://www.nationvoice.com/status.php. The code I generated is:
<script language="JavaScript" type="text/javascript">
var NVSettings = new Array(
"ServerIP: NewYork7.MLGVoice.com",
"ServerPort: 4417",
"Style: Detailed",
"EnaName: 1",
"EnaIP: 1",
"EnaComments: 1",
"EnaAuth: 0",
"EnaCodec: 1",
"EnaUptime: 0",
"EnaPlatform: 0",
"EnaClients: 1",
"Color: Blue",
"Width: 350",
"Height: 475",
"FontSize: 11",
"FontFamily: Verdana",
"Margin: 5",
"Padding: 10",
"BgColor: EBF0F3",
"BorderWidth: 4",
"BorderColor: 888888",
"BorderStyle: none"
);
var NVRdm = Math.random();
var NVUrl = "http://www.nationvoice.com/VentriloStatus/request.php?ran=" + NVRdm;
for(i=0;i<NVSettings.length;i++) {
var NVItems = NVSettings[i].split(":");
NVUrl += "&" + NVItems["0"].replace(/\s+/g,"") + "=" + NVItems["1"].replace(/\s+/g,"");
(NVItems["0"].replace(/\s+/g,"") == "ServerPort") ? NVDiv = NVItems["1"].replace(/\s+/g,""):"";
}
document.write('<div id="NVSTATUS_' + NVDiv + NVRdm + '"><\/div>');
document.write('<script language="JavaScript" type="text\/javascript" src="' + encodeURI(NVUrl) + '"><\/script>');
</script>
I tried looking but really can't see what might be the reason it's not working. Maybe you guys can help me, I would truly appreciate all the help, thanks =]
<script language="JavaScript" type="text/javascript">
var NVSettings = new Array(
"ServerIP: NewYork7.MLGVoice.com",
"ServerPort: 4417",
"Style: Detailed",
"EnaName: 1",
"EnaIP: 1",
"EnaComments: 1",
"EnaAuth: 0",
"EnaCodec: 1",
"EnaUptime: 0",
"EnaPlatform: 0",
"EnaClients: 1",
"Color: Blue",
"Width: 350",
"Height: 475",
"FontSize: 11",
"FontFamily: Verdana",
"Margin: 5",
"Padding: 10",
"BgColor: EBF0F3",
"BorderWidth: 4",
"BorderColor: 888888",
"BorderStyle: none"
);
var NVRdm = Math.random();
var NVUrl = "http://www.nationvoice.com/VentriloStatus/request.php?ran=" + NVRdm;
for(i=0;i<NVSettings.length;i++) {
var NVItems = NVSettings[i].split(":");
NVUrl += "&" + NVItems["0"].replace(/\s+/g,"") + "=" + NVItems["1"].replace(/\s+/g,"");
(NVItems["0"].replace(/\s+/g,"") == "ServerPort") ? NVDiv = NVItems["1"].replace(/\s+/g,""):"";
}
document.write('<div id="NVSTATUS_' + NVDiv + NVRdm + '"><\/div>');
document.write('<script language="JavaScript" type="text\/javascript" src="' + encodeURI(NVUrl) + '"><\/script>');
</script>
I tried looking but really can't see what might be the reason it's not working. Maybe you guys can help me, I would truly appreciate all the help, thanks =]
Comment