JavaScript "onload" Moving Pop-Up

Discussion in 'JavaScript' started by SgtShtTheFckUp, Mar 22, 2007.

Thread Status:
Not open for further replies.
  1. #1
    hi, im looking for a popup that will appear once a page loads, and have it move around the screen in a circling motion to grab users attention.

    the only moving popups ive seen require you to click.

    so you go to "page A", once you enter, "Page B" loads in a popup window and moves really frantically around the screen.

    thanx in advance

    :)
     
    SgtShtTheFckUp, Mar 22, 2007 IP
  2. cjburkha

    cjburkha Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Oh no.....

    PageA

    <script type="text/javascript">
    function openWin() {
    var i = 0;
    window.open('pageb.html', i + 'name', 'location=yes, width=200, height=200');
    }

    </script>
    <body >
    <p onclick="openWin()">Click Here for XY</p>
    </body>

    PageB

    <script type="text/javascript">
    var count = 0;
    var maxTimes = 10;
    var x = 10;
    var y = 10;
    function loaded() {
    setTimeout('movewindow()', 100)
    }

    function movewindow() {
    self.moveTo(x*count, y*count);
    count++;
    if (count < maxTimes)
    setTimeout('movewindow()', 100 )
    }

    </script>
    <body onload="loaded();" >
    <p >Page B</p>
    </body>
     
    cjburkha, Mar 22, 2007 IP
  3. MrGoodKat01

    MrGoodKat01 Banned

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you dont understand, he was looking for one that DIDNT require you to click. notice the "onload" in the title...

    ...


    ..


    .
     
    MrGoodKat01, Mar 22, 2007 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    SgtShtTheFckUp has been banned, but maybe has been reincarnated in MrGoodKat01 ;)
     
    ajsa52, Mar 22, 2007 IP
  5. MrGoodKat01

    MrGoodKat01 Banned

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you cant prove something for a fact when its not
     
    MrGoodKat01, Mar 24, 2007 IP
Thread Status:
Not open for further replies.