Scripting codes save as Name.htmThis is a featured page

<SCRIPT LANGUAGE="JavaScript">
<!-- ;


var guessme=Math.round(Math.random()*(99)+1);
var speech='Guess my number (from 1 to 100)';

function process(mystery) {
var guess=document.forms.guessquiz.guess.value;
var speech='"'+guess+ '" does not make sense to me.';
document.forms.guessquiz.guess.value='';

if (guess==mystery)
{
document.forms.guessquiz.prompt.value='Congratulations! '+mystery+' is correct!';
alert ('Well done - the mystery number is '+mystery+'! \n\nPress this button to reload the page for another game.');
speech='';
document.location=document.location;
}

if (mystery<guess)
{
speech='Less than '+ guess;
}

if (mystery>guess)
{
speech='Greater than '+ guess;
}

if (guess=='')
{
speech='You didn\'t guess anything!'
}

document.forms.guessquiz.prompt.value=speech; document.forms.guessquiz.guess.focus();

}

// end hide -->
</SCRIPT>

<FORM onSubmit="" NAME="guessquiz">
<CENTER>
<TABLE ALIGN="CENTER" BGCOLOR="#888888" BORDER="3" CELLPADDING="5">
<TR>
<TD BGCOLOR="#004080">
<FONT COLOR="#ffffff" FACE="Arial"><B>GUESS MY NUMBER (1 - 100)</B></FONT>
</TD>
</TR>
<TR>
<TD>
<CENTER>
<INPUT TYPE="text" NAME="prompt" SIZE="31" MAXLENGTH="40" VALUE="Guess my number (from 1 to 100)"><BR>
<INPUT TYPE="text" NAME="guess" SIZE="3" MAXLENGTH="3" VALUE="">
<INPUT TYPE="button" VALUE="Guess" onClick='process(guessme)'>
</CENTER>
</TD>
</TR>
</TABLE>
</CENTER>
</FORM>

////////////////////////////////////////////////////////////////////

<html>
<head>
<!--Step 1: Add the below SCRIPT to the head of your page:-->
<script type="text/javascript" src="spinmenu.js"></script>
</head>

<body>
<p>Example Spin Menu:</p>

<!--Step 2: Add the below SCRIPT to the body of your page where you want it to appear:-->
<script type="text/javascript">



eye.isVertical = 0; //if it's vertical or horizontal [0|1]
eye.x = 150; // x offset from point of insertion on page
eye.y = 0; // y offset from point of insertion on page
eye.w = 150; // item's width
eye.h = 30; // height
eye.r = 100; // menu's radius
eye.v = 20; // velocity
eye.s = 8; // scale in space (for 3D effect)
eye.color = '#ffffff'; // normal text color
eye.colorover = '#ffffff'; // mouseover text color
eye.backgroundcolor = '#0099ff'; // normal background color
eye.backgroundcolorover = '#990000'; // mouseover background color
eye.bordercolor = '#000000'; //border color
eye.fontsize = 12; // font size
eye.fontfamily = 'Arial'; //font family
if (document.getElementById){
document.write('<div id="spinanchor" style="height:'+eval(eye.h+20)+'"></div>')
eye.anchor=document.getElementById('spinanchor')
eye.spinmenu();
eye.x+=getposOffset(eye.anchor, "left") //relatively position it
eye.y+=getposOffset(eye.anchor, "top") //relatively position it

//menuitem: eye.spinmenuitem(text, link, target)
eye.spinmenuitem("text");
eye.spinmenuitem("");
eye.spinmenuitem("");
eye.spinmenuitem("");
eye.spinmenuitem("");
eye.spinmenuitem("");
eye.spinmenuclose();
}
</script>

</body>

////////////////////////////////////////////////////////////////////////////////////
<HTML>
<HEAD>
<TITLE>My First JavaScript page.</TITLE>
<SCRIPT type="text/javascript">
function message()
{
alert ("ERROR MESSAGE HERE")
}
</SCRIPT>
</HEAD>
<BODY>
<form>
<input type ="button" value="TYPE YOUR MESSAGE FOR BUTTON"
onclick="message()">
</form>
</BODY>
</HTML>
///////////////////////////////////////////////////////////////////

<HTML>
<HEAD>
<script language = "JavaScript">
<!-- Begin hiding here --


function color_changer(){
var now = new Date();
var seconds = now.getSeconds();
if(seconds == 0 || seconds == 7 || seconds == 14 || seconds == 21 || seconds == 28 || seconds == 35 || seconds == 42 || seconds == 49 || seconds == 56) document.bgColor = "red";
if(seconds == 1 || seconds == 8 || seconds == 15 || seconds == 22 || seconds == 29 || seconds == 36 || seconds == 43 || seconds == 50 || seconds == 57) document.bgColor = "orange";
if(seconds == 2 || seconds == 9 || seconds == 16 || seconds == 23 || seconds == 30 || seconds == 37 || seconds == 44 || seconds == 51 || seconds == 58) document.bgColor = "yellow";
if(seconds == 3 || seconds == 10 || seconds == 17 || seconds == 24 || seconds == 31 || seconds == 38 || seconds == 45 || seconds == 52 || seconds == 59) document.bgColor = "green";
if(seconds == 4 || seconds == 11 || seconds == 18 || seconds == 25 || seconds == 32 || seconds == 39 || seconds == 46 || seconds == 53 || seconds == 60) document.bgColor = "blue";
if(seconds == 5 || seconds == 12 || seconds == 19 || seconds == 26 || seconds == 33 || seconds == 40 || seconds == 47 || seconds == 54) document.bgColor = "indigo";
if(seconds == 6 || seconds == 13 || seconds == 20 || seconds == 27 || seconds == 34 || seconds == 41 || seconds == 48 || seconds == 55) document.bgColor = "purple";
setTimeout("color_changer()", 1000);
}
// -- End hiding here -->
</script>
<h1><center></h1></center>
<form name = control>
<input name = "on_off" type = "button" value = "On" onClick = "color_changer()">
<input type = "button" value = "Off" onClick = "history.go(0)">
</form>

</BODY>
</HTML>


/////////////////////////////////////////////////////////////////////////

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -
function changecolor(code) {

document.bgColor=code
}
// - End of JavaScript - -->
</SCRIPT>
</HEAD>
<BODY>
<form>
<input type="button" name="Button1" value="RED"
onclick="changecolor('red')">
<input type="button" name="Button2" value="GREEN"
onclick="changecolor('green')">
<input type="button" name="Button3" value="BLUE"
onclick="changecolor('blue')">
<input type="button" name="Button4" value="WHITE"
onclick="changecolor('white')">
<input type="button" name="Button5" value="BLACK"
onclick="changecolor('black')">
<input type="button" name="Button6" value="TURQUOISE"
onclick="changecolor('turquoise')">
<input type="button" name="Button6" value="ORANGE"
onclick="changecolor('orange')">
<input type="button" name="Button6" value="GOLD"
onclick="changecolor('gold')">
<input type="button" name="Button6" value="SILVER"
onclick="changecolor('silver')">
<input type="button" name="Button6" value="YELLOW"
onclick="changecolor('yellow')">
<input type="button" name="Button6" value="GRAY"
onclick="changecolor('gray')">
<input type="button" name="Button6" value="BROWN"
onclick="changecolor('brown')">
<input type="button" name="Button6" value="PINK"
onclick="changecolor('pink')">
<input type="button" name="Button6" value="TAN"
onclick="changecolor('tan')">
<input type="button" name="Button6" value="PEACH"
onclick="changecolor('peach')">
<input type="button" name="Button6" value="TEAL"
onclick="changecolor('teal')">
<input type="button" name="Button6" value="CORY"
onclick="changecolor('cory')">
<input type="button" name="Button6" value="RINTARO"
onclick="changecolor('rintaro')">
<input type="button" name="Button6" value="AUSTIN"
onclick="changecolor('austin')">
<input type="button" name="Button6" value="2+2"
onclick="changecolor('2+2')">
<input type="button" name="Button6" value="POOP"
onclick="changecolor('poop')">
<input type="button" name="Button6" value="WIERD"
onclick="changecolor('rgb(1,0.6,0.5))">



</form>
</form>
</BODY>
</HTML>


shoot991
shoot991
Latest page update: made by shoot991 , May 28 2009, 1:09 AM EDT (about this update About This Update shoot991 Edited by shoot991

No content added or deleted.

- complete history)
Keyword tags: None
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.