<script>
org_Color=document
</script>
<form>
<input type="button" value="淡黃色背景"onClick="document
<input type="button" value="淺藍色背景"onClick="document
<input type="button" value="粉紅色背景"onClick="document
<input type="button" value="墨綠色背景"onClick="document
<input type="button" value="天藍色背景"onClick="document
<input type="button" value="米白色背景"onClick="document
</form>
<selectonChange="document
<option value="#C
<option value="BLACK">黑的色
<option value="d
<option value="feefc
<option value="ffd
<option value="c
<option value="
<option value="#C
<option value="#
<option value="#AEDFD
<option value="#
<option value="#F
</select>
<scriptlanguage="Javascript">
<!
function backcolor(form){
temp = ""
for (var i =
temp = form
if (form
}
}
function randombackground(){
document
}
function getColor(){
currentdate = new Date()
backgroundcolor = currentdate
if (backgroundcolor >
backgroundcolor = backgroundcolor
else if (backgroundcolor >
backgroundcolor = backgroundcolor
else if (backgroundcolor >
backgroundcolor = backgroundcolor
if (backgroundcolor ==
return "olive";
else if (backgroundcolor ==
return "teal";
else if (backgroundcolor ==
return "red";
else if (backgroundcolor ==
return "blue";
else if (backgroundcolor ==
return "maroon";
else if (backgroundcolor ==
return "navy";
else if (backgroundcolor ==
return "lime";
else if (backgroundcolor ==
return "fuschia";
else if (backgroundcolor ==
return "green";
else if (backgroundcolor ==
return "purple";
else if (backgroundcolor ==
return "gray";
else if (backgroundcolor ==
return "yellow";
else if (backgroundcolor ==
return "aqua";
else if (backgroundcolor ==
return "black";
else if (backgroundcolor ==
return "white";
else if (backgroundcolor ==
return "silver";
}
//
</script>
<body onload="document
<a href="javascript:void(
點擊更換背景圖片
<div style="float:right;margin
<ahref="javascript:void(
<ahref="javascript:void(
<ahref="javascript:void(
<ahref="javascript:void(
<ahref="javascript:void(
<ahref="javascript:void(
</div>
IE
<imgonClick="javascript:document
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19818.html