Web Analytics Made Easy -
StatCounter pop up rotation - CodingForum

Announcement

Collapse
No announcement yet.

pop up rotation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pop up rotation

    Why is this not working?


    <html>
    <head>
    <script type="text/javascript">

    function randomPop()
    {
    var pop=new Array();
    pop[0]="http://www.hyfntrak.com/hilaryduff/AFF18888/go.php',
    'Link','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=440,height=600";

    pop[1]="'http://www.hyfntrak.com/alyandaj/AFF18906/go.php', 'Link','toolbar=0,location=0,directories=0,status= 0,menubar=0,scrollbars=0,resizable=0, width=650,height=473'";

    var num=(Math.round(Math.random()*2));
    var popup=window.open(pop[num]);
    }
    </script>
    </head>
    <body onload="randomPop()">
    </body>
    </html>

    Thanks in advance for taking a look

    Deb

  • #2
    Try this

    PHP Code:
    <html>
    <
    head>
    <
    script type="text/javascript">
    <!--
    function 
    randomPop(){
    var 
    pop=new Array()
    pop[0]=new Array("http://www.hyfntrak.com/hilaryduff/AFF18888/go.php","link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=440,height=600")

    pop[1]=new Array("http://www.hyfntrak.com/alyandaj/AFF18906/go.php","link","toolbar=0,location=0,directories=0,status= 0,menubar=0,scrollbars=0,resizable=0, width=650,height=473")

    var 
    num=(Math.floor(Math.random()*pop.length))

    var 
    popup window.open(pop[num][0],pop[num][1],pop[num][2])

    }
    //-->
    </script>
    </
    head>
    <
    body onload="randomPop()">


    </
    body>
    </
    html
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

    Comment


    • #3
      Thank U

      PERFECT!

      Thank you SOOO much!

      Deb

      Comment

      Working...
      X