HOME  >>>  HTML整理ノート  >>> DHTML --  基本編  応用編

文字列の切替え

ko

Sample Source......................................................................>>>

<script language="JavaScript"><!--
function Text1(){
    txt.style.color = "green";
    txt.style.font = "16pt DF勘亭流";
    txt.innerText = "Kodayanの";
    timerA = setTimeout("Text2()",1300);
}
function Text2(){
    txt.style.color = "red";
    txt.style.font = "24pt 'Arial Black'";
    txt.innerText = "Dynamic";
    timerA = setTimeout("Text3()",1300);
}
function Text3(){
    txt.style.color = "blue";
    txt.style.font = "34pt 'Comic Sans MS'";
    txt.innerText = "H T M L";
    timerA = setTimeout("Text1()",1300);
}
//--></script>
</head>

<body onload="Text1();">
<div style="height:70">
    <p id="txt" align="center">ko</p>
</div>


end(最終更新:12/11/16)