网页制作效果常用代码
越来越多的人长时间的泡网眼镜的普及率也越来越高让文字大点让更多的用户看的更清楚。
a hrefjavascript:doZoom(16)大/a a hrefjavascript:doZoom(14)中/a a hrefjavascrip天选t:doZoom(12)小/a
填写的嵌入地址一定要和本页面在同一个站点上否则会提示“拒绝访问”。对跨域引用有权限问题请查阅其他资料。
iframe nameguestbook srcgbook/index.asp scrollingno width100% height100% frameborderno οnlοaddocument.all[guestbook].style.heightguestbook.document.body.scrollHeight/iframe
iframe srcabout:body stylebackground:transparent allowtransparency/iframe
embed srcmusic.mid autostarttrue looptrue hiddentrue 对Netscape ,IE 都适用
代码“javascript:void(null)”代替原来的“#”标记
meta http-equivrefresh content5;url
hr noshade size0 color#C0C0C0
styletable-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word
消除ie6自动出现的图像工具栏设置 GALLERYIMG属性为false或no .
IMG srcmypicture.jpg HEIGHT100px WIDTH100px GALLERYIMGno
不能点右键不用CTRLA不能复制作!
IE浏览器支持一个 Body 属性 bgproperties它可以让背景不滚动:
Body Background图片文件 bgpropertiesfixed
随机变换背景图象一个可以刷新心情的特效
a href# onClickLayer1.style.displaynone关闭层/a
a hrefjavascript:close()[关闭窗口]/a
button οnclickPreview() 运行/button
body οnblurthis.focus();
.shadowfont{FILTER: dropshadow(color#666666, offx1, offy1, positive1); FONT-FAMILY: 宋体; FONT-SIZE: 9pt;COLOR: #ffffff;}
关闭javascript:window.close();
styleFILTER: alpha(opacity72)
script language“javascript”!--if (self!top){top.locationself.location;} -- /script
SCRIPT LANGUAGEjavascript srcjs/xxxxx.js/SCRIPT
styletext-indent:24px; 首行缩进建用EM单位。
相关文章:
相关推荐:
网友评论: