7758520.com.ru - 无非浮尘

  • ·包月10 块最多10字
  • ·包月10 块最多10字
  • ·包月10 块最多10字
  • ·包月10 块最多10字
  • ·包月10 块最多10字
  • ·包月10 块最多10字
投递文章 投稿指南 站长通告:无非浮尘推出新版本,开通游客投稿功能,欢迎你发布最新资讯。无非浮尘fans1群:15109513(满);

你当前所在位置:首页 > 站长学院 > 网页制作 列表

网上流行的滑动门

作者:admin 时间:2008-03-30 14:23:20 来自:无非浮尘

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script>
function dj(i)
{

  for(j=1;j<5;j++)
    {
  if(i==j){
   document.getElementById("a"+j).className="li2";
   document.getElementById("b"+j).style.display="";
          }
   else
    {
   document.getElementById("a"+j).className="li1";
   document.getElementById("b"+j).style.display="none";
      }
     }
 
}
</script>
<title>网上流行的滑动门</title>
<style>
/* CSS Document */
body { text-align: center; font-family:"宋体", arial;margin:0; padding:0; background: #FFF; font-size:12px; color:#000;}
div,form,img,ul,ol,li,dl,dt,dd {margin: 0; padding: 0; border: 0;}
h1,h2,h3,h4,h5,h6 { margin:0; padding:0;}
table,td,tr,th{font-size:12px;}
/* 链接颜色 */
a:link {color: #1f3a87; text-decoration:none;}
a:visited {color: #83006f;text-decoration:none;}
a:hover {color: #bc2931; text-decoration:underline;}
a:active {color: #bc2931;}
/* 滑动门 */
#c{width:243px; height:22px; margin:0 auto; font-size:12px; border:#94D5F3 1px solid;}
#c ul{ list-style:none; margin:0; padding:0;}
#c .li1 { width:60px; height:22px; display:block;border-bottom: #94D5F3 1px solid;border-right: #94D5F3 1px solid;  background-color: #DBF2FD; float:left;CURSOR: hand;}

#c .li2{ width:60px; height:22px; display:block; border-bottom:none; background-color: #fff; border-right: #94D5F3 1px solid;float:left;CURSOR: hand;}

.txt{ width:243px; height:100px; padding:0;}
</style>

</head>

<body>
<div id="c">
<ul>
<li id=a1 class="li1" onmouseover="dj(1)">a</li>
<li id=a2 class="li2" onmouseover="dj(2)" >b</li>
<li id=a3 class="li1" onmouseover="dj(3)" >c</li>
<li id=a4 class="li1" style="border-right:none" onmouseover="dj(4)" >d</li></ul>
<div id=b1 class="txt">a</div>
<div id=b2 class="txt" style="display:none">b</div>
<div id=b3 class="txt" style="display:none">c</div>
<div id=b4 class="txt" style="display:none">d</div>
</div>
</body>
</html>

责任编辑:adminTags:上一篇:免费Icon图标下载下一篇:右下角广告代码-已测-支持FIREFOX IE7 IE6468x15ad相关链接:468x15ad

用户评论: 查看全部评论

我要发表评论:由于免费资源时效性比较强,请文明用语,否则一律封IP
用户名:密码:验证码:匿名:
    关于我们 - 免责声明 - 广告服务 - 用户注册 - 申请连接 - -
    Copyright © 2005 - 2008 无非浮尘 7758520.com.ru 站长QQ:82665283 豫ICP备08001620号