Results 1 to 3 of 3

Thread: Javascript won't work
      
   

  1. #1
    delgadoj522 is offline Private
    Join Date
    May 2009
    Posts
    2

    Default Javascript won't work

    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 =]

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Javascript won't work

    Can you provide a link to your webpage you tried it on?

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    delgadoj522 is offline Private
    Join Date
    May 2009
    Posts
    2

    Default Re: Javascript won't work

    Well it worked after I published it, it just wouldn't appear in the preview of the webpage. Thanks anyways.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49