<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
var txt_msg=" ようこそ!! Java−Da!! です。 だ。 v(^^)";
var place=1;
function scroll_start() {
document.myform.mytext.value = txt_msg.substring(0, place);
if (place >= txt_msg.length) {
place=1;
window.setTimeout("scroll_out()",300);
} else {
place++;
window.setTimeout("scroll_start()",50);
}
}
function scroll_out() {
document.myform.mytext.value = txt_msg.substring(place, txt_msg.length);
if (place >= txt_msg.length) {
place=1;
window.setTimeout("scroll_start()", 100);
} else {
place++;
window.setTimeout("scroll_out()", 50);
}
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="scroll_start()">
<FORM name="myform">
<input type=text name=mytext size=50>
</FORM>
</BODY>
</HTML>
|