Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Sposor button

  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sposor button

    [Agree to terms & conditions] <--- This button unlocks the first button "Unlock 1"

    [Unlock 1] <--- When you click this button it opens a new window with a adress the webmaster chosen and when you klick it, it unlocks "Unlock 2" button

    [Unlock 2] <--- Same as above but it unlocks "Unlock 3" button instead

    [Unlock 3] <--- Same as "Unlcok 1" but this unlocks the "Download" button

    [Download] <--- This button DOESN'T open a new browser it only starts the downlaod!!

    Please help me, I'll give you credits on the site, Thanks

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    ...and now a message from our sposor...

    <html>
    <head>
    <title>untitled</title>
    <style type="text/css">

    input {
    font:200 12px "comic sans ms";
    }

    #buttons {
    width: 260px;
    text-align: center;
    border: 3px black double;
    padding: 12px;
    background: pink;
    }

    </style>
    <script type="text/javascript" language="javascript">

    function openWin(url,name,l,t,w,h) {
    window[name] = open(url,name,'left='+l+',top='+t+',width='+w+',height='+h+',status=0'); //put this all on one line - this editor blows!
    setTimeout('window["'+name+'"].focus()',100);
    }

    function closeit(which) {
    if (window[which] && !window[which].closed) window[which].close();
    }

    </script>
    </head>
    <body>
    <div id="buttons">
    <form style="margin:0px;">
    <input type="button" value="[Agree to terms & conditions]"
    onclick="unlock1.disabled=false"><br><br>
    <input type="button" name="unlock1" value="Unlock 1" disabled="disabled"
    onclick="openWin('http://www.google.com','pop1',300,100,500,400);
    unlock2.disabled=false"><br><br>
    <input type="button" name="unlock2" value="Unlock 2" disabled="disabled"
    onclick="closeit('pop1');openWin('http://www.hotbot.com','pop2',300,100,500,400);
    unlock3.disabled=false"><br><br>
    <input type="button" name="unlock3" value="Unlock 3" disabled="disabled"
    onclick="closeit('pop2');openWin('http://www.salon.com','pop3',300,100,500,400);
    download.disabled=false"><br><br>
    <input type="button" name="download" value="Download" disabled="disabled"
    onclick="closeit('pop3');window.location='http://www.codingforums.com'">
    </form>
    </div>
    </body>
    </html>

    Wild guess []
    Last edited by adios; 08-06-2002 at 10:38 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •