Visualizzazione dei risultati da 1 a 2 su 2

Discussione: popup in uscita

  1. #1

    popup in uscita

    Posso fare in maniera che questo popup si apra in uscita dal sito anziche in entrata?
    <script>
    <!-- Beginning of JavaScript -
    var popwindow
    var popwindowwidth=200
    var popwindowheight=200
    var popwindowtop=200
    var popwindowURL="popup.html"
    var waitingtime=5
    var pause=20
    var step=40
    var popwindowleft=-popwindowwidth-50
    var marginright
    var pagecenter
    var timer

    waitingtime= waitingtime*1000

    function showWindow() {
    popwindow = window.open(popwindowURL, "popwindow", "toolbar=no,width="+popwindowwidth+",height="+popw indowheight+",top="+popwindowtop+",left="+(-popwindowwidth)+"");
    if (document.all) {
    marginright = screen.width+50
    }
    if (document.layers) {
    marginright = screen.width+50
    }
    pagecenter=Math.floor(marginright/2)-Math.floor(popwindowwidth/2)
    movewindow()
    }

    function movewindow() {
    if (popwindowleft<=pagecenter) {
    popwindow.moveTo(popwindowleft,popwindowtop)
    popwindowleft+=step
    timer= setTimeout("movewindow()",pause)
    }
    else {
    clearTimeout(timer)
    timer= setTimeout("movewindow2()",waitingtime)
    }
    }

    function movewindow2() {
    if (popwindowleft<=marginright) {
    popwindow.moveTo(popwindowleft,popwindowtop)
    popwindowleft+=step
    timer= setTimeout("movewindow2()",pause)
    }
    else {
    clearTimeout(timer)
    popwindow.close()
    }
    }

    // -->
    </script>

    Se si come posso modicarlo?

    Grazie a tutti.
    --------------------
    Catramone

  2. #2
    Leggiti la mia pillola sulle pop up ( firma sotto pillole ) c'è il codice completo !

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.