网页特效
上一篇 / 下一篇 2008-08-02 23:14:25 / 个人分类:.NET
1.如何控制横向和纵向滚动条的显隐?
xEeKL$KY6[9iQ051Testing软件测试网8| OH)`l V j51Testing软件测试网7| u'QB!RnCN|
51Testing软件测试网,ojRwEFTO<body style="overflow-y:hidden"> 去掉x轴滚动条51Testing软件测试网#UsZ3r qAou
<body style="overflow-x:hidden"> 去掉y轴滚动条
H
Kfw+g+IEA
X0<body scroll="no">不显51Testing软件测试网w-O3u.vE"s
)Na)KK+{U {02.表格变色
5i3Hj%@ZJy0&l.lYq/f_1\r:S e+y:t,H0<TD #FFFFFF'"51Testing软件测试网-z
sihU$BY
onmouseout="this.style.backgroundColor=''" style="CURSOR: hand">
k}8N[ `03.禁止复制,鼠标拖动选取51Testing软件测试网3eCM4\P ?g+`s
51Testing软件测试网'maXNQm0[<body ōndragstart=window.event.returnValue=false ōncontextmenu=window.event.returnValue=false51Testing软件测试网5`
V%Wx })T.a%D
onselectstart=event.returnValue=false>
4.iframe的使用
8F9{$F4F2p0-Yf5R~,c|8Y&ui0<iframe src="a.htm" width="50" height="50" frameborder="0"></iframe>
mGm*d!h051Testing软件测试网K0a9t|,ZTU&z5.在收藏夹及IE地址栏中显示出你的图标51Testing软件测试网h d-oxz2P`9F
U}GbO T0<link rel="Shortcut Icon" href="favicon.ico">
H+x!{*V*~#t9r F0<link rel="Bookmark" href="favicon.ico">51Testing软件测试网uR3M?2gI r
v4s]`n7V}06.字号缩放
FM)?V;oG9k~ L ?0@D^(LXPV:LN0越来越多的人长时间的泡网,眼镜的普及率也越来越高,让文字大点,让更多的用户看的更清楚。
a(~+?9H;k@'?2m3r0<scrīpt type="text/javascrīpt">51Testing软件测试网f}rA$B/X.rc,j;_
function doZoom(size)51Testing软件测试网!`GR7w&j1?M
{document.getElementById('zoom').style.fontSize=size+'px';}51Testing软件测试网Z)Y#xW5hTB[3CRs
</scrīpt>
$sF4F@K4[Q0<span >需要指定大小的文字</span>
J'D.j@*}0<a href="">大</a> <a href="">中</a> <a href="">小</a>51Testing软件测试网L`N4C^\
J4V q_)`%S07.select挡住div的解决方法
Kn pE%xtDO-K.]0+V@4vX-Yktfo0在div里加入下面的代码,根据需要调整就可以了。51Testing软件测试网KNo/K3Q)l
<iframe src="" scrolling="no" frameborder="0" style="z-index:-1;; top:5px; left:2px;width:168;height:100px;">51Testing软件测试网b2d'P,\w4U qT3[6o
</iframe>51Testing软件测试网CoE9O#V+V
8.跳转菜单新窗口
5P5M&htW4ukW1U:\)D0"ing0A1fpB%a5a0<select >51Testing软件测试网8\$]qRFv(CG.T AZ
<option value="http://www.lihao.name"> lihao</option>51Testing软件测试网 BS&HtqV
o{o
<option value="http://www.nai8.com"> nai8</option>51Testing软件测试网eAe8Qn p'W
A-a
<option value="http://www.akbk.net"> akbk</option>
7RT#Yv;KdhX*YEx0</select>
l0P0uO1[,X8j"l+C09.flash透明选项51Testing软件测试网3v.J,d8E3b%^J
7`o$UC,]gU0<param value="transparent">
$I"x)u9?Gm;^}wz0/O/j`6H{.Z010.显示网页的最后更新时间
P)f%v ni;v\_m0E9RFG;_Ug0<scrīpt language=Javascrīpt>51Testing软件测试网
Xd xj`
],M^[KxZ
document.write("最后更新时间: " + document.lastModified + "")51Testing软件测试网
_DN*|:L$d;B)Gl]~
</scrīpt>
11.添加到收藏夹和设为首页
g m{v+Y@2r~051Testing软件测试网R9^ I3[r{"g1Nf<a href=# url(#default#homepage)';this.setHomePage('http://www.lihao.name/');">设为首页</a>51Testing软件测试网&\'c.`v e4ib
KIp6s_-o^|0<a href="">收藏本站</a>
bi8P8uyi4SS0|ddXN0图片设置方法:51Testing软件测试网X|D-Y y FS
51Testing软件测试网&IQ(uq*N Dzl<IMG SRC="lihao.gif" BORDER="0" ALT="设置为首页" url(#default#homepage)';this.sethomepage('http://www.lihao.name');return false;" style="cursor:hand">51Testing软件测试网7\V2zj;y@ |H
51Testing软件测试网Z4Hx2vM{<IMG SRC="bb.gif" BORDER="0" ALT="收藏此页面" http://www.lihao.name','李好博客')" style="cursor:hand">
0{$o.X{ aG"n E@0!}y7|6BQ/l.^(t"h$m#C012.加入背景音乐
#V*[.s\K` I9b7a!|0%u;vJS[ O/bo0<bgsound src="mid/windblue[1].mid" loop="-1"> 只适用于IE
~ g#}/ko0<embed src="music.mid" autostart="true" loop="true" hidden="true"> 对Netscape ,IE 都适用
3u&m&dX P2uh,|013.滚动
.u8^a.V#sD0G(Cq,cwtS0<marquee direction=up height=146 scrollAmount=2>滚动信息</marquee>51Testing软件测试网%Ux TF{F
51Testing软件测试网%[1^ h2W1A9Q14.跳转页面代码51Testing软件测试网 v[IZn
51Testing软件测试网2[Sg_,d;V1Z]1j"?<meta http-equiv="refresh" content="5;url=http://www.lihao.name">51Testing软件测试网3yW|i {7Z
q;V7L:jO7b"rz'o9z015. flash按钮加链接
;L tofGU-l;r0\e;c*R1B~hp
?0on (press) {51Testing软件测试网-q%a4zzQ&`O
getURL("http://www.lihao.name","_blank");51Testing软件测试网%Wz-HQ5~6ji
}
%Z?0V&kxK016.文字或图片弹出指定大小的窗口
3U5]4Yc+ZrY0&P#un7N#S9W0在body中加入
/AVW1]z;MJ9X^sn0<scrīpt language="Javascrīpt" type="text/Javascrīpt">
;A@~*c
f@0function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);}51Testing软件测试网+vd'c!SQ!q0xX
OX
</scrīpt>
dv0{'K#ox0弹出代码