Click to See Complete Forum and Search --> : Moving "Click Here" Button


elvis
03-07-2003, 09:01 AM
Does anybody know where I can find the script for the "Click Here" button, and when you put your mouse over it it moves round the screen and you can never "Click Here".
Desperate for this for a web page where I'm trying to wind some students up with a promise of answers to exma questions - guess what, they won't be able to "Click here".
Thanks for any help.

fkn
03-07-2003, 09:16 AM
To install this script, follow these simple steps:

1. Cut and paste this script into the HEAD of your document:

<script language="Javascript">
<!--//BEGIN Script
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));

function toggle( targetId ){
if (ie4){
target = document.all( targetId );
if (target.style.left == "55px"){
target.style.left = "15px";
} else {
target.style.left = "55px";
}
}
}

//END Script//-->
</script>

2. Cut and paste this into the BODY of your document:

<p>Is DevHead awesome?</p>

<input type="button" onmouseover="toggle('1')"
style="position:absolute; left: 55px;" id="1" value="no">
<input type="button" value="yes"
style="position:absolute; left: 105px;"
onclick="alert('Of course, it rocks!')">
</FONT>

<p><center>
<font face="arial, helvetica" size="-2"><b>Free JavaScripts provided<br>
by <a href="http://java.searchrealm.com">A SNG/RSHWeb Company</a></font>
</center></b><p>

elvis
03-10-2003, 07:42 AM
Thanks for your help, I'll use that.

elvis
03-10-2003, 08:35 AM
Course I liked it, so much I've used it ;-
http://www.traffordsubaqua.freeserve.co.uk/questions2.html

Going to use this one as well somewhere though

Thanks again.