在上網時我們注意往往是網站頁面內容
特效一
第一步:把如下代碼加入<head>區域中
<!
function scrollit(seed) {
var m
var m
var m
var m
var m
var msg=m
var out =
var c =
if (seed >
seed
cmd=
timerTwo=window
}
else if (seed <=
for (c=
out+=
}
out+=msg;
seed
window
cmd=
timerTwo=window
}
else if (seed <=
if (
out+=msg
seed
window
cmd=
timerTwo=window
}
else {
window
timerTwo=window
}
}
}
//
</script>
第二步:把如下代碼加入<body>區域中
特效二
把如下代碼加入<head>區域中
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>
特效三
把如下代碼加入<head>區域中
<script language=
<!
var index_count =
var title_string =
var title_length = title_string
var cmon;
var kill_length =
function loopTheScroll()
{
scrollTheTitle();
if(kill_length > title_length)
{
clearTimeout(cmon);
}
kill_length++;
cmon = setTimeout(
}
function scrollTheTitle()
{
var doc_title = title_string
document
index_count++;
}
loopTheScroll();
//
</script>
特效四
第一步:把如下代碼加入<head>區域中
<script language=
<!
var speed =
var pause =
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[
ar[
ar[
var message =
var state =
clearState()
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}
function startBanner() {
stopBanner()
showBanner()
}
function clearState() {
state =
for (var i =
state +=
}
}
function showBanner() {
if (getString()) {
message++
if (ar
message =
clearState()
timerID = setTimeout(
bannerRunning = true
} else {
var str =
for (var j =
str += (state
}
window
timerID = setTimeout(
bannerRunning = true
}
}
function getString() {
var full = true
for (var j =
if (state
full = false
}
if (full)
return true
while (
var num = getRandom(ar[message]
if (state
break
}
state = state
return false
}
function getRandom(max) {
return Math
}
//
</script>
第二步:把如下代碼加入<body>區域中
<body bgcolor= 特效五
第一步:把如下代碼加入<head>區域中
<!
var yourwords =
var speed =
var control =
function flash()
{
if (control ==
{
window
control=
}
else
{
window
control=
}
setTimeout(
}
//
</script>
第二步:把如下代碼加入<body>區域中
<body bgcolor= 特效六
第一步:把如下代碼加入<head>區域中
<!
var Message=
var place=
function scrollIn() {
window
if (place >= Message
place=
window
} else {
place++;
window
}
}
function scrollOut() {
window
if (place >= Message
place=
window
} else {
place++;
window
}
}
// End
</script>
第二步:把<body>中的內容改為:
<body bgcolor= 特效七
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25297.html