状态栏来回显示网址代码

2007-3-4 chenmo 网站建设

<body>

<SCRIPT language=JavaScript>
<!-- Begin
var x = 0
var speed = 500
var text = ":::http://qmmm.cn http://www.qmmm.cn:::"
var course = 48
var text2 = text
function Scroll() {
window.status = text2.substring(0, text2.length)
if (course < text2.length) {
setTimeout("Scroll2()", speed)
}
else {
text2 = " " + text2
setTimeout("Scroll()", speed);
}
}
function Scroll2() {
window.status = text2.substring(x, text2.length)
if (text2.length - x == text.length) {
text2 = text
x = 0
setTimeout("Scroll()", speed);
}
else {
x++
setTimeout("Scroll2()", speed);
}
}
Scroll()
//  End -->
</SCRIPT>

Powered by emlog 湘ICP备13007859号 空间由景安网络赞助