Code examples
A nice drop menu
Here is the code for the drop menu
<script>
function getSelect(s) {
return s.options[s.selectedIndex].value
}
</script>
<form>
<select name="list" size="1" onchange="location=getSelect(this)">
<option value="#"> Choose a Blog
</option>
<option value="http://thegate101.com/BlogGate/index.php/b"> Alien Thought
</option>
<option value="http://www.thegate101.com/BlogGate/"> Blog Gate
</option>
<option value="http://thegate101.com/BlogGate/index.php/snake"> Jake the Snake
</option>
<option value="http://thegate101.com/BlogGate/index.php/a"> The News
</option>
<option value="http://thegate101.com/BlogGate/index.php/john"> Jacknife Johnny
</option>
<option value="http://thegate101.com/BlogGate/index.php/Erika"> Erika's weblog
</option>
<option value="http://thegate101.com/BlogGate/index.php/ant"> Anthony's blog
</option>
<option value="http://blogthis.thegate101.com/"> Blogging for no reason
</option>
<option value="http://www.thegate101.com/Press/"> 101.com Blog
</option>
<option value="http://thegate101.com/geek/"> Geek Site
</option>
<option value="http://thegate101.com/"> the VentHole forum
</option>
<option value="http://thegate101.com/BlogGate/index.php/links"> Link Blog
</option>
</select>
<br>
</form>"
(
)
Here is the code for this Java Script simple date.
<script type="text/javascript">
var d = new Date()
document.write(d.getMonth() + 1)
document.write("-")
document.write(d.getDate())
document.write("-")
document.write(d.getFullYear())
</script>
<script type="text/javascript">
var timer = null
function stop()
{
clearTimeout(timer)
}
function start()
{
var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
minutes=((minutes < 10) ? "0" : "") + minutes
var seconds = time.getSeconds()
seconds=((seconds < 10) ? "0" : "") + seconds
var clock = hours + ":" + minutes + ":" + seconds
document.forms[0].display.value = clock
timer = setTimeout("start()",1000)
}
</script>"
Here is the code for the Java Script button.
<script type="text/javascript">
function show_alert()
{
alert("I Must Not Fear.Fear is the mind killer.Fear is the little death that brings obliteration.I will face my feer.I will permit it to pass over me and thruogh me,And when it has past.I will turn the inner eye to see it's path.Where the fear has gone there will be nothing.Only I will remain.")
document.all("myButton").focus()
}
</script>
<form><input value="For when you need it" name="myButton" onclick="show_alert()" type="button"></form>
Just make sure to put the text you want to show up, on the same line.
Keep it on one line.
"Thanks for stopping" by

Home
the Geek site
http://thegate101.com/geek/staticpages/index.php?page=20060816172150788
()