Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-07-2002, 05:53 PM   PM User | #1
Wobbler
New Coder

 
Join Date: Jul 2002
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Wobbler is an unknown quantity at this point
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!!
Wobbler is offline   Reply With Quote
Old 08-07-2002, 06:13 PM   PM User | #2
beetle
Senior Coder

 
Join Date: Aug 2002
Posts: 3,467
Thanks: 0
Thanked 0 Times in 0 Posts
beetle has a little shameless behaviour in the past
I'm sure that can be done, but please better exlpain what you want button 1 to do.
beetle is offline   Reply With Quote
Old 08-07-2002, 06:34 PM   PM User | #3
Wobbler
New Coder

 
Join Date: Jul 2002
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Wobbler is an unknown quantity at this point
[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!!
Wobbler is offline   Reply With Quote
Old 08-07-2002, 06:49 PM   PM User | #4
beetle
Senior Coder

 
Join Date: Aug 2002
Posts: 3,467
Thanks: 0
Thanked 0 Times in 0 Posts
beetle has a little shameless behaviour in the past
Piece of cake
Code:
<input type="button" name="unlock1" Value="Unlock 1" disabled name="unlock1" 
onclick="unlock2.disabled=false; window.open('page.htm','',features);">
beetle is offline   Reply With Quote
Old 08-07-2002, 07:59 PM   PM User | #5
Wobbler
New Coder

 
Join Date: Jul 2002
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Wobbler is an unknown quantity at this point
thanks
Wobbler is offline   Reply With Quote
Old 08-07-2002, 11:37 PM   PM User | #6
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
Quote:
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
adios is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:43 PM.


Advertisement
Log in to turn off these ads.