Test stuff...
Created | Updated Oct 20, 2010
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Craig Lumley -->
<!-- Web Site: http://www.ws4all.co.uk -->
<!-- Begin
function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
if (hours > 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Eric Stremming <[email protected]> -->
<!-- http://www.geocities.com/SunsetStrip/Club/5970/ -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function test(form) {
if (form.text.value == "")
alert("What\'s your favorite color?")
else {
document.bgColor=(""+form.text.value+"");
}
}
// End -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function reverse(form) {
text = "";
str = form.revtext.value;
for (i = 0; i <= str.length; i++)
text = str.substring(i, i+1) + text;
form.revtext.value = text;
}
// End -->
</script>
</HEAD>
</HEAD>
<BODY>
<p>It would appear that there's just going to be a pile of random things here while I try stuff out...</p>
<CENTER>
<FORM>
<INPUT TYPE="button" VALUE="Does this work???"
onClick='alert("Oh my...it does!!!")'>
</FORM>
</CENTER>
<!-- Script Size: 0.50 KB -->
Currently, it's <span id=clock style="position:relative;"></span>
<!-- Script Size: 1.66 KB -->
<BODY>
<CENTER>
<FORM>
<B>Please enter your favorite<BR/>
color and then click the button.<BR/>
<input type="text" id="text">
<input type="button" id="button" value="click for color!" onClick="test(this.form)">
</FORM>
</CENTER>
<!-- Script Size: 1.06 KB -->
<form>
<input type=text name=revtext value=hello>
<input type=button value="Reverse" onClick="reverse(this.form)">
</form>
<!-- Script Size: 0.88 KB -->
</BODY>