时间: 2021-07-31 作者:daque
笔者积少成多了很多精粹、适用的web殊效的创造,那些殊效简直都是比拟常用的网页殊效。此刻我就把那些过程整治和窜改过的殊效分三个级别辨别引见给大师。 高档篇 1.各别功夫段表露各别安慰语 <script language="javascript"> <!-- var text=""; day = new date( ); time = day.gethours( ); if (( time>=0) && (time < 7 )) text="夜猫子,要提防身材哦! " if (( time >= 7 ) && (time < 12)) text="即日的阳光真绚烂啊,你谁人伙伴呢?" if (( time >= 12) && (time < 14)) text="午间休息功夫。您要维持安置哦!" if (( time >=14) && (time < 18)) text="祝您下昼处事欣喜! " if ((time >= 18) && (time <= 22)) text="您又来了,可别和mm聊太久哦!" if ((time >= 22) && (time < 24)) text="您该当休憩了!" document.write(text) //---> </script> 2.水中本影功效 <img id="reflect" src="你本人的图片文献名" width="175" height="59"> <script language="javascript"> function f1() { setinterval("mdiv.filters.wave.phase+=10",100); } if (document.all) { document.write('<img id=mdiv src="'+document.all.reflect.src+'" style="filter:wave(strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()">') window.onload=f1 } </script> 3.渐渐变大的窗口 <script language="javascript"> <!-- var windowsheight=100 var windowswidth=100 var numx=5 function openwindow(thelocation){ temploc=thelocation if (!(window.resizeto&&document.all)&&!(window.resizeto&&document.getelementbyid)) { window.open(thelocation) return } windowsize=window.open("","","scrollbars") windowsize.moveto(0,0) windowsize.resizeto(100,100) tenumxt() } function tenumxt(){ if (windowsheight>=screen.availheight-3) numx=0 windowsize.resizeby(5,numx) windowsheight+=5 windowswidth+=5 if (windowswidth>=screen.width-5) { windowsize.location=temploc windowsheight=100 windowswidth=100 numx=5 return } settimeout("tenumxt()",50) } //--> </script> <p><a href="javascript:openwindow('http://www.ccjol.com')">加入</a> 4.变换ie地方栏的ie图标 咱们要先做一个16*16的icon(图标文献),生存为index.ico。把这个图标文献上传到根目次下并在首页<head></head>之间加上如次代码: <link rel = "shortcut icon" href="index.ico">