Miscellaneous >>> Shy Button.
 
Script Categories













Miscellaneous >>> Shy Button.

Try to click the wrong answer with this clever script.

Is this a good script?

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
var flag = 1;
function t()
{
   if( flag == 1 )
   {
      document.getElementById("N").style.top = "175px";
      document.getElementById("N").style.left = "500px";
   }
   if( flag == 2 )
   {
      document.getElementById("N").style.top = "215px";
      document.getElementById("N").style.left = "100px";
   }
   if( flag == 3 )
   {
      document.getElementById("N").style.top = "300px";
      document.getElementById("N").style.left = "350px";
   }
   flag = flag + 1;
   if( flag == 4 )
   {
      flag = 1;
   }
}

//  ---------------------------------------

function al()
{
   alert( "Correct!" );
}

//  End -->
</script>
<p><font color="red">Is this a good script?</font></p>
<
DIV ID="N" STYLE="position:absolute; left:350px; top:300px; width:50px; height:50px;">
<form>
<input
type=button value="NO" onMouseover="t()">
</form>
</DIV>
<
DIV ID="Y" STYLE="position:absolute; left:300px; top:300px; width:50px; height:50px;">
<form>
<input
type=button value="YES" onClick="al()">
</form>
</DIV>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©