<script>
function change_background(form){
if (form.bg_color[1].selected)
document.bgColor="darkkhaki";
/*
If you put this code you can take your
visitor to another page:
window.location.href ="pageaddress.html"
*/
else if (form.bg_color[2].selected)
document.bgColor="darkmagenta";
else if (form.bg_color[3].selected)
document.bgColor="darkolivegreen";
else if (form.bg_color[4].selected)
document.bgColor="darkorange";
else if (form.bg_color[5].selected)
document.bgColor="darkorchid";
else if (form.bg_color[6].selected)
document.bgColor="white";
}
</script>
</head>
<body bgcolor=white>
<h2>Background Color Changer</h2>
<form>
<select name="bg_color"
onChange="change_background(this.form)">
<option selected>Select Background Color
<option>darkkhaki
<option>darkmagenta
<option>darkolivegreen
<option>darkorange
<option>darkorchid
<option>white
</select>
</form>
Last Updated: Sunday, December 13, 1998