www.puzzlehacker.com

Archive for the ‘Javascript’ Category

Determine your fate

Posted by: jobinmartin on: March 3, 2007

<html> <head> <title>MAGIC 8 BALL</title> <script language=”javascript”> var ques= prompt(‘Enter your yes/no question, so we can determine you fate’, ‘ ‘); if ( (ques==’ ‘) || (ques==null) ) { ques=”None”; } </script></head> <body bgcolor=”#c0c0c0″ text=”black” link=”fuschia” vlink=”red”> <br><br><center><h1>Magic 8 Ball</h1><br><br><br><br> <SCRIPT language=”JavaScript”> document.write(“<center><p></b>Your question was:<br><p><b> ” + ques + ” </b></p></center>”); </SCRIPT> <br><br> <center><p>Your answer [...]

Improve mathematical skill

Posted by: jobinmartin on: March 3, 2007

<html> <body onclick=”MouseClick()” bgColor=Aqua text=black background=”" > <div id=’TableDiv’ class=Section1> <p class=MsoNormal style=”BACKGROUND-IMAGE: url(”)”> <TABLE cellSpacing=1 cellPadding=1 width=”100%” height=”5%” id=ResultsTable style=”LEFT: 5px; WIDTH: 100%; FONT-FAMILY: sans-serif; POSITION: absolute; TOP: 486px” bgColor=cornflowerblue> <TR> <TD><INPUT id=HelpID onclick=’ShowHelp()’ type=button value=’?’ name=HelpBtn size=16 ></TD> <TD><SELECT id=OperationID> <OPTION value=1 selected>Addition</OPTION><OPTION value=2>Subtraction</OPTION><OPTION value=3>Multiplication</OPTION><OPTION value=0>All</OPTION></SELECT> <SELECT id=LevelID name=select1> <OPTION value=0 selected>Easy</OPTION><OPTION value=1>Medium</OPTION><OPTION [...]

Vanishing NO

Posted by: jobinmartin on: March 3, 2007

Just copy the codes and paste on notepad…. Save it as x.html…Open the file and  view in mozilla or Internet Explorer <html><head> <SCRIPT LANGUAGE=”JavaScript”> var flag = 1; function t() { if(flag == 1) { N.style.top = “75px”; N.style.left = “700px”; } if(flag == 2) { N.style.top = “115px”; N.style.left = “100px”; } if(flag == [...]

Shake you browser

Posted by: jobinmartin on: March 3, 2007

Just copy the codes and paste on notepad….Save it as x.html…Open the file and view in mozilla or Internet Explorer <html> <head> <SCRIPT LANGUAGE=”JavaScript”> <!– Begin function shake(n) { if (parent.moveBy) { for (i = 10; i > 0; i–) { for (j = n; j > 0; j–) { parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); parent.moveBy(0,i); [...]

Learning Javascript

Posted by: jobinmartin on: March 3, 2007

Learning Javascript was the simplest of the tasks I ever performed…. It just took a matter of minutes to take in the basics….After the basics I went after some javascript codes and things like that…… NB: Some codes are given. Just copy the codes and paste on notepad….Save it as x.html…Open the file and view [...]


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 87 other followers

Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Subscribe to RSS headline updates from:
Powered by FeedBurner

Software Blogs - BlogCatalog Blog Directory
Follow

Get every new post delivered to your Inbox.

Join 87 other followers