<script type="text/javascript">
<!--
var start_y=-50;
var step=2;
var last_y, posi_y, timerID;
var static_x=450;
posi_y=start_y;
function initPosition() {
if(document.getElementById) {
if(document.all) {
last_y=document.body.clientHeight/3;
}
else {
last_y=innerHeight/3;
}
document.getElementById("subtitle").style.top=start_y;
document.getElementById("subtitle").style.left=static_x;
}
else if(document.layers) {
last_y=innerHeight/3;
document.subtitle.top=start_y;
document.subtitle.left=static_x;
}
moveText();
}
function moveText() {
if(posi_y>last_y) {
clearTimeout(timerID);
}
else {
posi_y+=step;
if(document.getElementById) {
document.getElementById("subtitle").style.top=posi_y;
}
else if(document.layers) {
document.subtitle.top=posi_y;
}
timerID=setTimeout("moveText()", 10);
}
}
//-->
</script>
|