Invisionfree Website Refreases All Time!

Discussion in 'Gaming' started by Ruler46, Jun 15, 2006.

  1. Ruler46

    Ruler46 Well-Known Member

    Age:
    34
    Posts:
    583
    Likes Received:
    0
    Joined:
    Oct 25, 2005
    Ok, on my site here http://z4.invisionfree.com/CjsArcade/index.php?

    It keeps refreashing when u try to navigate, its only in firefox but still... Can u help me

    Fix is rewarded with rep and all my creds

    CSS Code
    ');
    document.write('<center><iframe frameborder=0 src="http://folk.ntnu.no/khanghyv/Arcade/index.php?b=CjArcade&u=');
    document.write(username);
    document.write('" scrolling="no" height=1850 width=100%></iframe></center>');
    }
    if(username=="Guest")
    {
    document.write('</div>');
    document.write('<div class="tableborder"><div class="maintitle">Not Allowed</div><div class="tablepad">Sorry, Guests are not allowed to use the Arcade.</div></div>');
    document.write('
    ');
    }
    }
    </script>
    </div>
    <table width="100%" style='border:1px solid #2D3644' cellspacing="1" cellpadding="4">
    <tr>
    <td class="maintitle" align='center'>Skin <FONT COLOR="#E1E6EA">Summorien</FONT> designed by <FONT COLOR="#E1E6EA">Zeus00</FONT> of the IF Skin Zone.</td>
    </tr>
    <td class="darkrow2" align='center'>
    Back to Top ^^^
    </td>
    </tr>
    </table>
    <table width="35%" align="center" border="0"><tr><td>
    <div class="tableborder">
    <div class='maintitle' align='center'>
    Random Affiliates

    </div>
    <table width="100%" align="center" border="0" cellspacing="1" cellpadding="4"><tr><td class="row1">

    <center><script language="JavaScript">
    <!--
    function adArray() {
    for (i=0; i*2<adArray.arguments.length; i++) {
      this = new Object();
      this.src = adArray.arguments[i*2];
      this.href = adArray.arguments[i*2+1];
    }
    this.length = i;
    }
    function getAdNum() {
    dat = new Date();
    dat = (dat.getTime()+"").charAt(8);
    if (dat.length == 1)
      ad_num = dat%ads.length;
    else
      ad_num = 0;
    return ad_num;
    }

    /*These links are for the affiliates, the first link is the image and the second link is the link to the forum/site itself*/

    var ads = new adArray(
    "http://www.freedomain.co.nr/images/buts/ch.gif",
    "http://www.freedomain.co.nr/cheap_web_hosting.php"
    );


    var ad_num = getAdNum(); // don't change this line

    document.write('<table cellpadding=0 cellspacing=1 border=0><tr><td '
    +'align="center">'
    +'</td></tr><tr><td>'
    +'[​IMG]</td></tr></table>');

    // ****** ONLY CHANGE THE 30000 TO SOMETHING DIFFERENT FOR A DIFFERENT TIME, 30000 IS DEFAULT AND ROTATES EVERY HALF A MINUTE ****

    link_num = document.links.length-1;

    function rotateSponsor() {
    if (document.images) {
      ad_num = (ad_num+1)%ads.length;
      document.js_ad.src = ads[ad_num].src;
      document.links[link_num].href = ads[ad_num].href;
      setTimeout("rotateSponsor()",30000);
    }
    }
    setTimeout("rotateSponsor()",30000);

    // -->
    </script></center>
    <center>[ View All Affiliates ]</center>
    </td>
    </tr>
    </table>
    </div>
    </td></tr></table>

    [/quote]

     
  2. longhornfreak

    longhornfreak Well-Known Member

    Posts:
    1,029
    Likes Received:
    0
    Joined:
    Mar 1, 2006
  3. Ruler46

    Ruler46 Well-Known Member

    Age:
    34
    Posts:
    583
    Likes Received:
    0
    Joined:
    Oct 25, 2005
    It does it in Opera too, My friend said its doing it to him aswell
     
  4. longhornfreak

    longhornfreak Well-Known Member

    Posts:
    1,029
    Likes Received:
    0
    Joined:
    Mar 1, 2006
    yes i think

    var ad_num = getAdNum(); // don't change this line

    document.write('<table cellpadding=0 cellspacing=1 border=0><tr><td '
    +'align="center">'
    +'</td></tr><tr><td>'
    +'[​IMG]</td></tr></table>');

    // ****** ONLY CHANGE THE 30000 TO SOMETHING DIFFERENT FOR A DIFFERENT TIME, 30000 IS DEFAULT AND ROTATES EVERY HALF A MINUTE ****

    ^^what it says idk^^^
     
  5. Ruler46

    Ruler46 Well-Known Member

    Age:
    34
    Posts:
    583
    Likes Received:
    0
    Joined:
    Oct 25, 2005
    hmmm maybe, ill set it to an impossabley high number, edit this with if it worked


    EDIT: Nope, i deleted the entire rotate coding, ill try to remove the affilerates, then ill be able to see if its that

    EDIT 2: Ok fixed it, turns out it was that little peice of birthday javascript in my footer, For your help long, ill give u 50 creds (Not all since u didnt fixed but did help) and rep
     
  6. longhornfreak

    longhornfreak Well-Known Member

    Posts:
    1,029
    Likes Received:
    0
    Joined:
    Mar 1, 2006
    sorry, but that was nice of you -rep
     

Share This Page