<HTML>
<HEAD>
<STYLE>
.msg_style {
position:absolute;
visibility:visible;
font-size:14pt;
font-weight:normal;
color:blue;
top:200px;
left: 260px;
height: 32px;
width: 500px;
filter:alpha(opacity=100);
}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
var message = "★=★= JavaScript☆Tips =★=★"
var character = 0;
var to_print = "";
var ypos = 200;
var next = 0 ;
var fade = 100 ;
function disp_text(text) {
if (document.all) {
if (character <= text.length - 1) {
to_print += text.charAt(character);
teletext.innerHTML = to_print;
character++;
}
else scroll_msg();
}
setTimeout("disp_text(message)", 100);
}
function scroll_msg() {
if (ypos >= 160) {
ypos -= 1;
fade -= 4;
if (ypos < 165) {
teletext.innerHTML = "" ;
}
}
else {
ypos = 200;
character = 0;
to_print = "";
fade = 100;
}
teletext.style.top = ypos;
teletext.filters.alpha.opacity = fade;
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="disp_text(message)">
<DIV ID=teletext CLASS="msg_style">
</DIV>
</BODY>
</HTML>
|