Need help with a Pop over ' Opt-in ' form script !

Discussion in 'JavaScript' started by dude91, Jul 7, 2009.

  1. #1
    I have just with PHP a few days back , I was wondering if some one could help me with the code i ve got here.

    I basically want the pop over window to be closed once some one subscribes and get redirected to another address.

    here is the code

    <html>
    <head>
    
    <script>
    
    var delay='1';  // How many seconds before window opens
    
    //  JS/CSS Pop over script by Dave Lauderdale
    //  Originally published at:  www.digi-dl.com
    
    function showWin() { winDisplay.style.display = ""}
    function closeWin() { winDisplay.style.display = "none"}
    </script>
    
    </head>
    <body onLoad="setTimeout('showWin()',delay*1000)">
    
    <table id="winDisplay" cellSpacing="0" cellPadding="0" border="1" width="300" height="250" align="center" bgcolor="white" style="display:none; left:400px; position:absolute; top:200px; border-left: black 1px double; border-right: black 1px double; border-top: black 1px double; border-bottom: black 1px double">
    <tr>
    <td align="left" valign="top" bgcolor="blue" width="100%" height="10px">
    <font color=white size=2 face=arial><b>
    
    <!-- Your page title goes here  -->
    Welcome to 'Free Dubai'
    
    </b></font>
    </td>
    <td width="10px" height="10px" bgcolor="red" align="right">
    <font color="white" size="3" face="arial"><span onclick="closeWin()" style="cursor:hand" title="Click here to close this window"><b>X</b></span></font>
    </td></tr>
    <tr>
    <td colspan="2">
    
    <!-- Your window content here goes  -->
    
    <font color=black size=2 face=arial><b>
    <center><div style="overflow: hidden; width: 234px; height: 185px; position: relative;" id="i_div">
    
    We never know when and how etisalat may block this site.Drop in your Email Ids so We could always get back to you with more unblocking sites.
    
    <form style="border:0px solid #ccc;padding:0px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=dxbunderground/JGhj', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><p></p><p><input type="text" style="width:140px" name="email"/></p>
    
    <input type="hidden" value="dxbunderground/JGhj" name="uri"/>
    
    <input type="hidden" name="loc" value="en_US"/><input type="submit" value="Subscribe" onclick="location.href( 'http://www.freedubai.co.cc/unblock')"; / ></p></form>
    
    
    </td></tr></table>
    
    </body></html> 
    Code (markup):

    I am kind of confused how to proceed further with it , i Would appreciate , if some one would help !
     
    dude91, Jul 7, 2009 IP
  2. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Can u please explain clearly what u intend to do?
    As of now when u click subscribe , it is redirecting to "http://www.freedubai.co.cc/unblock"
    and also a popup window with address "http://feedburner.google.com/fb/a/mailverify" is opening.
     
    Unni krishnan, Jul 8, 2009 IP