熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

特酷消隱字體

2013-11-15 12:17:34  來源: JSP教程 

  腳本說明:

  第一步:把如下代碼加入<head>區域中
<SCRIPT language="JavaScript">
<!
var thissize=
var textfont="隸書"

var textcolor= new Array()
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]=""
textcolor[]="aaaaaa"
textcolor[]="bbbbbb"
textcolor[]="cccccc"
textcolor[]="dddddd"
textcolor[]="eeeeee"
textcolor[]="ffffff"
textcolor[]="ffffff"

var message = new Array()
message[]="歡迎光臨素材"
message[]="請多停留一會"
message[]="你會有更多的收獲"
message[]="請再次光臨"
i_message=

var i_strength=
var i_message=
var timer

function glowtext() {
if(documentall) {
if (i_strength <=) {
glowdivinnerText=message[i_message]
documentallglowdivstylefilter="glow(color="+textcolor[i_strength]+
" strength=)"
i_strength++
timer=setTimeout("glowtext()")
}
else {
clearTimeout(timer)
setTimeout("deglowtext()")
}
}
}

function deglowtext() {
if(documentall) {
if (i_strength >=) {
glowdivinnerText=message[i_message]
documentallglowdivstylefilter="glow(color="+textcolor[i_strength]+
" strength=)"
i_strength
timer=setTimeout("deglowtext()")
}
else {
clearTimeout(timer)
i_message++
if (i_message>=messagelength) {i_message=}
i_strength=
intermezzo()
}
}
}

function intermezzo() {
glowdivinnerText=""
setTimeout("glowtext()")
}

//

</SCRIPT>

第二步:把如下代碼加入<body>區域中
<div id="glowdiv" style="position:absolute;visibility:visible;width:
px;textalign:center; top:px;left:px;fontfamily:隸書;fontsize:
pt;color:"></div>

第三步:把<body>區中內容改為
<body bgcolor="#fefd" onLoad="glowtext()">


From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20661.html
    相關文章
      没有相关文章
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.