■□■文字色は「navy」です。■□■

●●サンピアザ水族館●●

●●サンピアザ水族館サイトマップ●●


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>文字色や背景色、リンク色を設定したい</title>
<script type="text/JavaScript">
<!--
function int_color(){
document.fgColor = "navy";
document.bgColor = "#ccffcc";
document.linkColor = "red";
document.alinkColor = "yellow";
document.vlinkColor = "blue";
}
function color_chg(){
if (document.bgColor == "#ccffcc") {
document.fgColor = "fuchsia";
document.bgColor = "#99ffff";
document.linkColor = "green";
document.vlinkColor = "gray";
} else {
int_color();
}
}
// -->
</script>
</head>
<body onload="int_color()" text="#000000">
<h2>■□■文字色は「navy」です。■□■</h2>
<p><a href="http://www3.ocn.ne.jp/%7Esunpi-aq/shop.html">●●サンピアザ水族館●●</a></p>
<p><a href="http://www3.ocn.ne.jp/%7Esunpi-aq/sitemap.html">●●サンピアザ水族館サイトマップ●●</a></p>
<form><input type="button" value="文字色と背景色を変更します" onclick="color_chg()"></form>
</body>
</html>


★解説★