很不错的文本显示(js) |
|
<HTML><HEAD><TITLE>文字</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type> <STYLE> <!-- BODY { FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; MARGIN-TOP: 0px ;} A { COLOR: rgb(198,198,198); TEXT-DECORATION: none ;} A:hover { COLOR: rgb(255,0,0); TEXT-DECORATION: none ;} .neon { FILTER: Glow(Color=#fff200,Strength=5); LEFT: 560px; POSITION: absolute; TOP: 90px; WIDTH: 200px ;} #bottom { HEIGHT: 160px; LEFT: 350px; LINE-HEIGHT: 20px; POSITION: absolute; TOP: 120px; WIDTH: 180px ;} #welcome { HEIGHT: 60px; LEFT: 370px; LINE-HEIGHT: 20px; POSITION: absolute; TOP: 110px; WIDTH: 140px ;} #tisi { BACKGROUND-COLOR: #000000; HEIGHT: 60px; LEFT: 370px; LINE-HEIGHT: 20px; POSITION: absolute; TEXT-ALIGN: center; TOP: 60px; VISIBILITY: hidden; WIDTH: 140px ;} --> </STYLE> <SCRIPT language=javascript> <!-- if (document.layers) { visible = 'show'; hidden = 'hide'; } else if (document.all) { visible = 'visible'; hidden = 'hidden'; } function show(tisi) { if (document.layers) { layertisi = document.layers[tisi]; } else if (document.all) { layertisi = document.all(tisi).style; } layertisi.visibility = visible; } function hide(tisi) { if (document.layers) { layertisi = document.layers[tisi]; } else if (document.all) { layertisi = document.all(tisi).style; } layertisi.visibility = hidden; } --> </SCRIPT> <SCRIPT language=vbscript> <!-- sub change_color(x) if x>500 then call change_colordown(255) else text1.style.color="rgb("&x&","&x&","&x&")" text2.style.color="rgb("&x-15&","&x-15&","&x-15&")" text3.style.color="rgb("&x-30&","&x-30&","&x-30&")" text4.style.color="rgb("&x-45&","&x-45&","&x-45&")" text5.style.color="rgb("&x-60&","&x-60&","&x-60&")" text6.style.color="rgb("&x-75&","&x-75&","&x-75&")" text7.style.color="rgb("&x-90&","&x-90&","&x-90&")" text8.style.color="rgb("&x-105&","&x-105&","&x-105&")" text9.style.color="rgb("&x-120&","&x-120&","&x-120&")" text10.style.color="rgb("&x-135&","&x-135&","&x-135&")" text11.style.color="rgb("&x-150&","&x-150&","&x-150&")" text12.style.color="rgb("&x-165&","&x-165&","&x-165&")" text13.style.color="rgb("&x-180&","&x-180&","&x-180&")" text14.style.color="rgb("&x-195&","&x-195&","&x-195&")" text15.style.color="rgb("&x-210&","&x-210&","&x-210&")" text16.style.color="rgb("&x-225&","&x-225&","&x-225&")" stringx="change_color("&x+5&")" y=settimeout(stringx,10) end if end sub sub change_colordown(x) if x<0 then call change_color(0) else text1.style.color="rgb("&x&","&x&","&x&")" text2.style.color="rgb("&x&","&x&","&x&")" text3.style.color="rgb("&x&","&x&","&x&")" text4.style.color="rgb("&x&","&x&","&x&")" text5.style.color="rgb("&x&","&x&","&x&")" text6.style.color="rgb("&x&","&x&","&x&")" text7.style.color="rgb("&x&","&x&","&x&")" text8.style.color="rgb("&x&","&x&","&x&")" text9.style.color="rgb("&x&","&x&","&x&")" text10.style.color="rgb("&x&","&x&","&x&")" text11.style.color="rgb("&x&","&x&","&x&")" text12.style.color="rgb("&x&","&x&","&x&")" text13.style.color="rgb("&x&","&x&","&x&")" text14.style.color="rgb("&x&","&x&","&x&")" text15.style.color="rgb("&x&","&x&","&x&")" text16.style.color="rgb("&x&","&x&","&x&")" stringx="change_colordown("&x-5&")" y=settimeout(stringx,10) end if end sub sub tisi_fade(x) if x>200 then exit sub tisi.style.color="rgb("&x&","&x&","&x&")" stringx="tisi_fade("&x+10&")" y=settimeout(stringx,5) end sub sub welcome_fade(x) if x>200 then exit sub welcome.style.color="rgb("&x&","&x&","&x&")" stringx="welcome_fade("&x+10&")" y=settimeout(stringx,5) end sub --> </SCRIPT> <META content="IBM HomePage Builder 2001 V5.0.0 for Windows" name="GENERATOR"></HEAD> <BODY bgColor=#000000> <P><FONT color=#1234ff><SPAN id=text1>z</SPAN> <SPAN id=text2>i</SPAN> <SPAN id=text3>h</SPAN><SPAN id=text4> a</SPAN><SPAN id=text5> n</SPAN><SPAN id=text6> o</SPAN><SPAN id=text7> n</SPAN><SPAN id=text8> l</SPAN><SPAN id=text9> i</SPAN><SPAN id=text10> n</SPAN><SPAN id=text11> e</SPAN><SPAN id=text12> j</SPAN><SPAN id=text13> s</SPAN><SPAN id=text14> 特</SPAN><SPAN id=text15> 效</SPAN><SPAN id=text16>!</SPAN></FONT></P> <SCRIPT> <!-- change_color(0) --> </SCRIPT> </BODY></HTML> |