腳本說明:
把如下代碼加入<head>區域中
<script language=
var MESSAGE =
var POSITION =
var DELAY =
var scroll = new statusMessageObject()
function statusMessageObject(p
this
this
this
this
this
this
function clearmessage() {
this
function scroller() {
for (scroll
scroll
if (scroll
scroll
else scroll
window
scroll
scroll
if (scroll
scroll
setTimeout (
function snapIn(jumpSpaces
var msg = scroll
var out =
for (var i=
{out += msg
for (i=
{out +=
out += msg
window
if (jumpSpaces <=
position++
if (msg
{position++ }
jumpSpaces =
} else if (jumpSpaces >
{jumpSpaces *=
else
{jumpSpaces
if (position != msg
var cmd =
scrollID = window
} else { window
jumpSpaces=
position=
cmd =
scrollID = window
return false }
return true}
snapIn(
</script>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19559.html