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 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sposor button again

    Here is the code

    <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 name="unlock1"
    onclick="unlock2.disabled=false"><br><br>
    <input type="button" name="unlock2" value="Unlock 2" disabled name="unlock2"
    onclick="unlock3.disabled=false"><br><br>
    <input type="button" name="unlock3" value="Unlock 3" disabled name="unlock3"
    onclick="download.disabled=false"><br><br>
    <input type="button" name="download" value="Download" disabled name="download"
    onclick="">
    </form>

    i got it from the first trhead, don't remember by who, i've modified it a bit cause it didn't work.

    But i can't make that advace i want to

    Can sombody modify it so it works like this



    [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!!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm sure that can be done, but please better exlpain what you want button 1 to do.

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [Agree to terms & conditions] <--- This button unlocks the first button "Unlock 1"

    [Unlock 1] <--- This button enables the next button "Unlock 2" AND opens a new window with a link i chosen.

    [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!!

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Piece of cake
    Code:
    <input type="button" name="unlock1" Value="Unlock 1" disabled name="unlock1" 
    onclick="unlock2.disabled=false; window.open('page.htm','',features);">

  • #5
    New Coder
    Join Date
    Jul 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    i got it from the first trhead, don't remember by who, i've modified it a bit cause it didn't work.
    http://www.codingforums.com/showthre...?threadid=3465

    You didn't copy it correctly.
    Don't start new threads needlessly.
    You're welcome.

    adios


  •  

    Posting Permissions

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