|
| |
精品推荐 |
 |
|
| |
|
|
|
|
42个网页设计小技巧
|
日期:2007年5月24日 作者: 查看:[大字体
中字体 小字体]
|
document.write("最后更新时间: " + document.lastModified + "") </script>
11.添加到收藏夹和设为首页 <a href=# onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.lihao.name/');">设为首页</a>
<a href="javascript:window.external.AddFavorite('http://www.lihao.name/','李好博客)">收藏本站</a>
图片设置方法: <IMG SRC="lihao.gif" BORDER="0" ALT="设置为首页" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.lihao.name');return false;" style="cursor:hand">
<IMG SRC="bb.gif" BORDER="0" ALT="收藏此页面" onclick="window.external.addFavorite('http://www.lihao.name','李好博客')" style="cursor:hand">
12.加入背景音乐 <bgsound src="mid/windblue[1].mid" loop="-1"> 只适用于IE <embed src="music.mid" autostart="true" loop="true" hidden="true"> 对Netscape ,IE 都适用
13.滚动 <marquee direction=up height=146 onmouseout=start() onmouseover=stop() scrollAmount=2>滚动信息</marquee>
14.跳转页面代码 <meta http-equiv="refresh" content="5;url=http://www.lihao.name">
15. flash按钮加链接 on (press) { getURL("http://www.lihao.name","_blank"); }
16.文字或图片弹出指定大小的窗口 在body中加入 <script language="JavaScript" type="text/JavaScript"> function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);} </script> 弹出代码 <a href="#" target="_self" onClick="MM_openBrWindow('windows01.htm','','width=550,height=380')" width="550" height="380" border="0">图片或文字</a>
17. 细分隔线 <hr noshade size=0 color=#C0C0C0>
18.网页中的自动换行 <td style="word-break:break-all">
上一篇:Vista解惑100点之IE7应了解的10件事
下一篇:新手来学习 WPS表格中神奇的条件格式
|
| 42个网页设计小技巧 相关文章: |
|
|
|
| 42个网页设计小技巧 相关软件: |
|
|
|
|