投递文章投递文章 投稿指南投稿指南 RSS订阅RSS订阅

新浪滑门(tab)技术

来源:iT堂整理 发布时间:2007-12-13 收藏 投稿 字体:【

以下为引用的内容:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 3</title><style type="text/css">
<!--

/*CSS for all begin*/
html, body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, td, img {margin:0; padding:0; border:0;}
td,p,div,li,select,input,textarea {font-size:12px;}
ul {list-style-type:none; text-align:left;}
select,input {vertical-align:middle;}
body { color:#333; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_011.gif) repeat-x;}
#wrap { width:750px; margin:0 auto; clear:both; background:#fff;}
.clearit { clear:both;}

a{ color:#039; text-decoration:underline;}
/*a:visited { color:#666; text-decoration:underline;}*/
a:hover{ color:#F00; text-decoration:underline;}

.linkN a{ color:#039; text-decoration:none;}
.linkN a:hover{ color:#F00; text-decoration:underline;}

.linkfff a{ color:#fff; text-decoration:none;}
.linkfff a:hover{ color:#F00; text-decoration:underline;}

.linkAD5A00 a { color:#AD5A00; text-decoration:none;}
.linkAD5A00 a:hover { color:#f00; text-decoration:underline;}

.linkC00 a { color:#C00; text-decoration:none;}
.linkC00 a:hover { color:#C00; text-decoration:underline;}

.link666 a { color:#666; text-decoration:none;}
.link666 a:hover { color:#F00; text-decoration:underline;}

h1 { font-size:16px; font-family:simhei; font-weight:500; text-align:center; padding:5px 0 3px 0;}
h2 { font-size:14px; color:#fff; display:block; clear:both; text-align:left;}
h3 { font-size:14px; font-weight:200; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_017.gif) no-repeat 2px 7px; border-bottom:2px solid #BBE5F1; padding:5px 0 2px 17px; margin:5px 0;}

span{ font-size:12px; font-weight:200; float:right; margin-right:5px;}

ul { margin:5px 0 0 5px; color:#039;}
li { padding:3px 0 3px 10px; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_010.gif) no-repeat 3px 7px;}
.noStyle li { padding:3px 0; background:none;}
ul.two { margin:8px 0 0 12px;}
.two li { padding:3px 0 3px 10px; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_010.gif) no-repeat 3px 7px; float:left; width:110px;}
.f14 li { font-size:14px; padding:1px 0 4px 10px;}
.blkT { margin-top:6px;}

.list14 { font-size:14px; line-height:23px;}
/*CSS for all end*/
/*CSS for 共用模块 end*/

/*CSS for main begin*/
.leW { width:254px;}
.miW { padding:0 5px;}
.riW { width:140px; background:#F3F3F3;}
.riW li { padding:3px 0 3px 6px; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_009.gif) no-repeat 0 7px;}

.cont_le { background:#EBF8FB; border:1px solid #A3D8E0; border-top:none; border-bottom:none; padding:8px 0 8px 0;}
.cont_all { background:#EBF8FB; border:1px solid #A3D8E0; border-top:none; padding:8px 0 8px 0;}

.text { padding:4px 0 8px 0; text-align:center;}
.pic { margin:8px 0; text-align:center;}
.textL { text-align:left; padding:3 0 8px 0;}
.blankT { margin-top:8px;}
.picfff { text-align:center;}
.picfff img { border:1px solid #fff; margin:5px 0;}

.partA .jdt { background:#D11C00; padding:5px 0 5px 0; text-align:left;}
.partA .cont_le p { float:left; margin:0 0 0 6px; text-align:center;}
.partA .miW .top { height:17px; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_014.gif) no-repeat; text-align:right; padding:5px 18px 0 0; margin-top:8px;}
.partA .miW .top a { color:#C00; text-decoration:underline;}
.partA .miW .top a:hover { color:#C00; text-decoration:none;}
.partA .miW .cont { background:#FFFBEA; border:1px solid #FC6; border-top:none; padding-bottom:5px; border-bottom:none;}
.partA .miW .cont p{ line-height:19px; margin-left:15px;}
.partA .miW .cont .line { background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_015.gif) repeat-x; height:1px; font-size:0; margin:5px 15px;}
.partA .miW .top1 { height:15px; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_016.gif) no-repeat; text-align:left; padding:4px 0 0 23px; margin-left:0; _margin-left:2px;}
.partA .miW .top1 h2 { color:#000;}
.partA .miW .cont1 { border:1px solid #FC6; border-top:none; padding:5px 0 8px 0;}
.partA .shiP { background:#E0E5F2 url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_013.gif) no-repeat bottom; width:120px; height:109px; border:1px solid #A0B2D8; margin:10px 0 0 9px;}
  /*标签*/
  .menu1Off,.menu1On,.menu2Off,.menu2On,.menu3Off,.menu3On,.menu4Off,.menu4On { height:20px; color:#039; text-align:center; background:#B2DBE1; cursor:pointer; padding-top:3px;}
  .menu1On,.menu2On,.menu3On,.menu4On{ color:#C00; background:#fff; border-left:1px solid #34AEBE; border-right:1px solid #34AEBE;}
  /*标签a*/
  .menua1Off,.menua1On,.menua2Off,.menua2On{ height:16px; width:52px; color:#666; text-align:center; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_020.gif) repeat-x; cursor:pointer; padding-top:3px;}
  .menua1On,.menua2On{ color:#C00; font-weight:bold; background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_019.gif) repeat-x; }
  .menuCont { background:#F3F3F3;}
  .menuCont th { text-align:center; font-weight:200; padding:5px 0 3px 0;}
  .menuCont .noBg td { background:#fff; padding:5px 0 3px 5px; border-right:1px solid #F3F3F3; }
  .menuCont .noBg1 td { background:#F3F3F3; padding:5px 0 3px 5px; border-right:1px solid #FFF;}

.partA .tuKu { background:url(http://image2.sina.com.cn/ty/yayun2006/idx061115img/yyh_lmy_022.gif) no-repeat; margin-left:5px; height:150px; text-align:center;}
.partA .tuKu p { float:left; margin:0 10px; _margin:0 8px;}
.partA .tuKu img { padding:5px; border:1px solid #D0D1D2; background:#fff; margin:8px 0;}

.partA .shiPyy { border:1px solid #FC6; margin-top:5px;}
.partA .shiPyy h2 { color:#C00; background:#FFEAAF; padding:5px 0 3px 5px;}
.partA .shiPyy img { vertical-align:middle;}

.adv { margin:8px 0;}

.leftW { width:605px; padding-right:5px; text-align:center;}
.leftW .leW { width:140px;}
.leftW .leW img { margin-bottom:8px;}
.leftW .leW p { text-align:left; line-height:19px; padding:0 5px; margin-top:5px;}
.leftW .leW .picText { text-align:left; line-height:19px; padding-right:5px; margin-bottom:8px;}
.leftW .leW .picText img { float:left; margin:0 7px;}
.midW { padding:5px 0 0 5px; text-align:left;}
.midW table { margin-bottom:8px;}
.midW td { line-height:19px; padding:3px 0px;}
.midW span { float:none; color:#929292;}
.midW .more span { float:right;}
.midW .cC00 { color:#C00; font-weight:bold;}
.rightW { width:140px; background:#F3F3F3;}
.rightW p { float:left; margin:5px 0 5px 8px; _margin:5px 0 5px 5px;}
.rightW .cont { text-align:left; line-height:19px; text-align:left; padding:8px 0 0 8px;}
.rightW .date { margin-top:8px;}
.rightW .date td { color:#666; padding:1px 0;}
.rightW .date td { background:#fff; padding:1px 0; color:#039;}
.rightW .date .cF60 { color:#F60; font-weight:bold;}
.rightW .fenX { margin-top:8px; margin-left:3px;}
.rightW .fenX td { padding:5px 0 2px 5px; background:#fff; text-align:left;}
.rightW .blk000 img { border:1px solid #000;}

/*CSS for main end*/

-->
</style>

</head>
<body onload="change_Menu(1)">

<table width="254" cellspacing="0" class="partA">
  <tr><td class="leW" valign="top" width="254">
     
      <!-- d -->      <!-- d -->
      <!-- 舌签排行 begin -->
      <script language="JavaScript" type="text/javascript">
//<![CDATA[
var cur_index=1
var num=4 //该值记录标签的个数
var settime
function GetObj(objName){
  if(document.getElementById){
    return eval('document.getElementById("' + objName + '")');
  }else if(document.layers){
    return eval("document.layers['" + objName +"']");
  }else{
    return eval('document.all.' + objName);
  }
}
function change_Menu(index){
  for(var i=1;i<=num;i++){/* 最多支持8个标签 */
    if(GetObj("con"+i)&&GetObj("m"+i)){
      GetObj("con"+i).style.display = 'none';
      GetObj("m"+i).className = "menu"+i+"Off";
    }
  }
  if(GetObj("con"+index)&&GetObj("m"+index)){
    GetObj("con"+index).style.display = 'block';
    GetObj("m"+index).className = "menu"+index+"On";
  }
  cur_index=index
  if(cur_index<num){
     cur_index++
    }
  else{
      cur_index=1
    }
  settime=setTimeout("change_Menu(cur_index)",2000)//设置延迟时间
   
}
function Menu(c_index){
  clearTimeout(settime)
  change_Menu(c_index)
 }   
  

//]]>
</script>
<table cellspacing="0" style="background:#3FA6B5; width:100%;" class="clearit">
<tr><td height="3"></td></tr>
<tr><td style=" color:#fff; font-weight:bold; text-align:center;"><a href=http://yayun2006.sina.com.cn/video/index.shtml target=_blank style="color:#fff;">
  视频访谈</a></td>
  <td id="m1" onClick="Menu(1)" class="menu1On" title="明星">明星</td>
  <td width="1"></td>
  <td id="m2" onClick="Menu(2)" class="menu2Off" title="游泳">游泳</td>
  <td width="1"></td>
  <td id="m3" onClick="Menu(3)" class="menu3Off" title="特写">特写</td>
  <td width="1"></td>
  <td id="m4" onClick="Menu(4)" class="menu4Off" title="举重">举重</td>
  <td width="10"></td>
</tr>
</table>
<div id="con1" class="cont_le picfff">
  <p style=" margin-left:1px;"><a href="http://sports.sina.com.cn/doha2006/z/doha2006/photo/36083/index.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1091DT20061207054109.jpg" width="120" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/z/doha2006/photo/36083/index.shtml" target="_blank">
  游泳冠军做客</a>
  </p>
  <p><a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-05/23122613020.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1094DT20061207054109.jpg" width="120" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-05/23122613020.shtml" target="_blank">
  邻家男孩吴鹏</a>
  </p>
  <div class="clearit"></div>
</div>
<div id="con2" style="display:none;"  class="cont_le picfff">
    <p style=" margin-left:1px;"><a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-05/23382613071.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1322DT20061207054109.jpg" width="120" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-05/23382613071.shtml" target="_blank">
    蛙后齐晖</a>
  </p>
  <p><a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-05/22502612978.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1323DT20061207054109.jpg" width="120" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-05/22502612978.shtml" target="_blank">
  成熟周雅菲</a>
  </p>
  <div class="clearit"></div>
</div>
<div id="con3" style="display:none;" class="cont_le picfff">
    <p style=" margin-left:1px;"><a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-07/00582616492.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1324DT20061207054109.jpg" width="248" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-07/00582616492.shtml" target="_blank">
    张国政与小浪亲密接触</a>
  </p>
  <div class="clearit"></div>
</div>
<div id="con4" style="display:none;" class="cont_le picfff">
    <p style=" margin-left:1px;"><a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-07/00502616482.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1325DT20061207054109.jpg" width="120" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-07/00502616482.shtml" target="_blank">
    丘乐公布择偶标准</a>
  </p>
  <p><a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-07/00212616420.shtml" target="_blank"><img src="http://image2.sina.com.cn/ty/up/2006-12-07/U347P6T64D26465F1326DT20061207054109.jpg" width="120" height="90" alt="" /></a><br />
    <a href="http://sports.sina.com.cn/doha2006/o/bn/2006-12-07/00212616420.shtml" target="_blank">
  女子举重大姐大</a>
  </p>
  <div class="clearit"></div>
</div>
</body>

</html>

最新5条评论 查看所有评论
评论内容:请自觉遵守互联网相关政策法规。
用户名: 密码: 匿名 注册
热门文章
随机推荐
About iTtang - 联系方法  - 专题列表 - 友情链接  -  高级搜索   -  帮助中心  -