<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
var head_msg = "<center><font color=brown size=+2><b>";
var foot_msg = "</b></font></center>";
var disp_msgSpeed = 1600;
var dsp_Str = new Array();
dsp_Str[0] = "JavaScript&Tips";
dsp_Str[1] = "いかがですか";
dsp_Str[2] = "また、お越しください。";
dsp_Str[3] = "今後ともどうぞよろしく。";
var i = 0;
function disp_msg() {
eval(temp);
if (i == dsp_Str.length) i = 0;
setTimeout("disp_msg()", disp_msgSpeed);
}
window.onload = disp_msg;
//-->
</script>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (document.layers) {
document.write('<ilayer id="NS4message" height=25 width=100%>'+
'<layer id="NS4message2" height=25 width=100%></layer></ilayer>');
temp = 'document.NS4message.document.NS4message2.document.write(head_msg + dsp_Str[i++] + foot_msg);'+
'document.NS4message.document.NS4message2.document.close()';
}
else if (document.getElementById) {
document.write(head_msg + '<div id="message" style="position:relative;">IE division</div>' + foot_msg);
temp = 'document.getElementById("message").firstChild.nodeValue = dsp_Str[i++];';
}
else if (document.all) {
document.write(head_msg + '<div id="message" style="position:relative;">IE division</div>' + foot_msg);
temp = 'message.innerHTML = dsp_Str[i++];';
}
//-->
</SCRIPT>
<br>
</BODY>
</HTML>
|