|
| 网页特效<九>其他特效 |
|
|
|
|
来源: 作者: 阅读: 次 字体:大 中 小 |
|
|
1.彩色滚动条
使你的滚动条变成彩色!(IE5.5以下版本无效)
代码: 把以下代码加入到<head>与</head>之间:
<style type="text/css"> body { scrollbar-face-color: #b5daff; scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #000000; scrollbar-arrow-color: #0000ff; scrollbar-base-color: #6699ff; scrollbar-dark-shadow-color: #6699ff; } </style>
2.用IE登录FTP服务器。 代码: <script janguage="javascript"> <!-- function goFtpSite() { document.location.href = "ftp://" + document.ftp.login.value + ":" + document.ftp.password.value + "@" + document.ftp.url.value; }
//--> </script> <form name="ftp"> <table border="0" cellpadding="1" cellspacing="1" align="center" width="304"> <tr> <td width="296"> <table border="0" cellspacing=0 cellpadding=5 align="center" width="292"> <tr bgcolor="#b5e1ff"> <td width="75" align="right"> <font face="arial,helvetica" size="-1" color="#008080"> Ftp:// </font> </td> <td width="193"> <font face="arial,helvetica" size="-1"> <input type="text" size=30 name="url" style="border: 1 solid #0099FF"> </font> </td> </tr> <tr bgcolor="#ddf1ff"> <td align="right" width="75"> <font face="arial,helvetica" size="-1" color="#008080"> UserName: </font> </td> <td width="193"> <font face="arial,helvetica" size="-1"> <input type="text" size="15" name="login" maxlength="20" style="border: 1 solid #0099FF"> </font> </td> </tr> <tr bgcolor="#b5e1ff"> <td align="right" width="75"> <font face="arial,helvetica" size="-1" color="#008080"> Password: </font> </td> <td width="193"> <font face="arial, helvetica" size="-1"> <input type="password" size="15" name="password" maxlength="20" style="border: 1 solid #0099FF"> </font></td> </tr> <tr bgcolor="#ddf1ff"> <td colspan="2" align="center" width="280"> <font face="arial,helvetica" size="-2"> <input type=button onclick="goFtpSite();" value="登录" style="background-color: #0099FF; color: #FFFFFF; border: 1 solid #0099FF"> <input type=reset value="重写" style="color: #FFFFFF; background-color: #0099FF; border: 1 solid #0099FF"> </font> </td> </tr> </table> </td> </tr> </table> </form>
3.javascript的容错脚本
javascript的容错脚本,有了它,你的页面就不会出现错误提示了。
代码: <SCRIPT LANGUAGE="JavaScript"> <!-- function cf66_net() { return true; } window.onerror = cf66_net(); // --> </SCRIPT>
4.给页面加热键
给页面加一个热键,按了它后就自动转到相应页面
代码: <SCRIPT language="JavaScript"> <!-- var hotkey=97 var destination="http://www.cf66.net"; if (document.layers) document.captureEvents(Event.KEYPRESS) function cf66_net(e){ if (document.layers){ if (e.which==hotkey) window.location=destination; } else if (document.all){ if (event.keyCode==hotkey) window.location=destination; } } document.onkeypress=cf66_net; //-->
</SCRIPT>
|
|
转载本站文章请注明 来源:长风在线 http://www.CF66.Net
|
|
|
|
|
上一篇: 网页特效<八>cookie
下一篇: 没有了 |
|
|
【投稿日期:2006-11-17 19:47:19】【责任编辑:】【会员投稿】【收藏本页】
|
|
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
|
|
|