フェードイン
原案:臥龍 鳳雛 氏 (2000/04/01 登録)
ページを開くとフェードインします。
表示サンプル
ソース記述内容
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<title>フェードイン</title>
<script type="text/javascript">
<!--
function hex(n){
var a="0123456789ABCDEF";
h=(n >> 4);
l=(n & 15);
return (a.charAt(h)+a.charAt(l));
}
function chgclr() {
for (x=0;x<255;x+=1) {
document.bgColor=hex(x)+hex(x)+hex(x);
}
}
// -->
</script>
</head>
<body bgcolor="black" onLoad="chgclr();">
<h1>フェードイン</h1>
<p style="color:white;"> このページを開くとフェードインします。</p>
<p style="color:black;"> フェードインしましたね。</p>
</body>
</html>