<script>
msg1=" ";
msg2="いらっしゃいませ! まいどありがとうございます ";
msg3="相変わらずのホームページです・・・・・ ";
msg = msg1 + msg2 + msg3;
if(navigator.appName.charAt(0) == "M") //ブラウザによってフォームの長さを調整して表示
document.write("<form name='scrllform'><INPUT type='text' name='scrlltext' size=40></form>");
else
document.write("<form name='scrllform'><INPUT type='text' name='scrlltext' size=22></form>");
function textscrll(){
document.scrllform.scrlltext.value = msg.substring(i,i+50);
i = i + 2;
if(i > msg.length) i = 0;
setTimeout("textscrll()",150); // この数値を変えるとスクロールの速度が変わります。
}
i = 0;
textscrll();
</script>
|