...

View Full Version : Sposor button



Wobbler
08-06-2002, 08:17 PM
[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

adios
08-06-2002, 09:35 PM
...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 [:confused:]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum