长风在线-首页
 首页 >> 软件文库 >> 网页设计 >> 正文
网页特效<九>其他特效
来源: 作者: 阅读: 次 字体:
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】【责任编辑:】【会员投稿】【收藏本页
 文章评论

会员名称:
密码:匿名 ·注册·忘记密码?
评论内容:
(最多300个字符)
  查看评论
 相关文章
- 网页特效<八>cookie
- 网页特效<七>图像特效
- 网页特效<六>状态特效
- 网页特效<五>数字时钟
- 网页特效<四>鼠标特效
- 网页特效<三>页面背景
- 网页特效<二>按钮特效
- 网页特效<一>典型特效
 >> 站 内 搜 索
 
 >> 推 荐 阅 读
- 他与3个女人的故事:浪子,
- 我的儿媳妇,撑起摇摇欲坠
- 新素食主义者 我行我素
- 单车运动,“骑”乐无穷
- 幸福在哪里——荆门女子的
- 诗人阿翔:无声世界里的旅行
- 我们能否再回到从前 - 我的
- 不能给她幸福,只能为她祝
- 农村汉子捐肾救妻叩开生命
- 银行卡该怎样使用?——专