js tab选项切换卡代码

js tab选项切换卡代码
<style type="text/css教程">
body{
 font-size:12px;
 text-align:center;
 line-height:18px;
 background-color: #FFFFFF;
}
.tabs{width:300px; margin:auto;}
.tabs_title{width:303px; height:31px; border-bottom:#ffffff solid 0px;}
.tabs_title_01{width:101px; height:31px; padding-top:8px; float:left; background:url(../pic/bg101x31.jpg);no-repeat; cursor:hand;}
.tabs_title_02{width:101px; height:31px; padding-top:8px; float:left; background:url(../pic/111X33.jpg) no-repeat; cursor:hand;}
.tabs_title_03{width:0px; height:31px; overflow:hidden; float:left;}
.tabs_content{width:180px;}
.blue {
 BORDER-RIGHT: #cccccc 1px solid;  BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid;
}
.style520 {width: 101px; height: 31px; padding-top: 8px; float: left; background: url(../pic/bg101x31.jpg) no-repeat; cursor: hand; font-weight: bold; }
</style>

<script type="text/javascript教程" >
var tID=0;
function showTabs(ID)
{
  if(ID!=tID)
  {
    TabTitle[tID].className='tabs_title_01';
    TabTitle[ID].className='tabs_title_02';
    TabContent[tID].style.display='none';
    TabContent[ID].style.display='';
    tID=ID;
  }
}
</script>

<link href="../css/css.css" rel="stylesheet" type="text/css">
<div class="tabs">
  <div class="tabs_title">
    <div  class="tabs_title_02" id="TabTitle" onmouseover="showTabs(0)"><a href="../zdgz.asp教程" target="_blank">政工动态</a></div>
 <div class="tabs_title_03"></div> 
    <div  align="center" class="style520" id="TabTitle" onmouseover="showTabs(1)"><a href="../gbmange.asp" target="_blank">干部工作</a></div>
 <div class="tabs_title_03"></div> 
    <div align="center" class="style520" id="TabTitle" onmouseover="showTabs(2)"><a href="../young.asp" target="_blank">青春风采</a></div>
 <div class="tabs_title_03"></div>
 <div class="tabs_content" id="TabContent" align="left" style="display:block;">
 <table width="303"  border="0" cellspacing="1" class="blue">
  <tr>
    <td align="center" bgcolor="#FFFFFF">
      <table width="98%"  border="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
  <table height="42" cellspacing="0" cellpadding="0"
                              width="98%" align="center" border="0">
                <tbody>
                  <%
           
            dim sqlzdgz
        sqlzdgz="select top 9 * from zdgz  where isture='是' order by id desc"           
        call opendb()
        rs.open sqlzdgz,conn,1,1
       if not rs.eof then
        do while not rs.eof
        %>
                  <tr>
                    <td width="227" height="21" align="left"><a href="../display.asp?id=<%=rs("id")%>&table_s=zdgz" target="_blank" class="tomg">&nbsp;›&nbsp;
                          <%if datediff("d",rs("send_date"),date())<4 then
            If len(Rs("title"))>=16 Then
            response.Write(left(rs("title"),14))
           Response.write("..")
            response.Write("<img src=../index_files/new1.gif width=28 height=11 border=0 />")
           Else
             response.Write(rs("title"))
            response.Write("<img src=../index_files/new1.gif width=28 height=11 border=0 />")
           End if
           else
           If len(Rs("title"))>16 Then
            response.Write(left(rs("title"),15))
           Response.write("...")
            
           Else
             response.Write(rs("title"))
            
           End if
           end if%>
                    </a> </td>
                    <td width="69" height="21" align="left" class="date"><%=rs("send_date")%></td>
                  </tr>
                  <%rs.movenext
        loop
        else
        %>
                  <tr>
                    <td colspan="2">暂时还没上传东西www.111cn.net</td>
                  </tr>
                  <%
        end if
        
        %>
                </tbody>
        </table>
    </td>
    </tr>
</table>
  </div>
  <div class="tabs_content" id="TabContent" style="display:none;">
  <table width="303"  border="0" cellspacing="1" class="blue">
  <tr>
    <td bgcolor="#FFFFFF">
      <table width="98%"  border="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
 <table height="42" cellspacing="0www.111cn.net" cellpadding="0"
                              width="98%" align="center" border="0">
                <tbody>
                  <%
           
            dim gbmange
        gbmange="select top 9 * from gbmange2  order by id desc"           
        call opendb()
        rs.open gbmange,conn,1,1
       if not rs.eof then
        do while not rs.eof
        %>
                  <tr>
                    <td width="227" height="21" align="left"><a href="../<%=Rs("file_path")%>" target="_blank" class="tomg">&nbsp;›&nbsp;
                          <%if datediff("d",rs("send_date"),date())<4 then
            If len(Rs("title"))>=16 Then
            response.Write(left(rs("title"),14))
           Response.write("..")
            response.Write("<img src=../index_files/new1.gif width=28 height=11 border=0 />")
           Else
             response.Write(rs("title"))
            response.Write("<img src=../index_files/new1.gif width=28 height=11 border=0 />")
           End if
           else
           If len(Rs("title"))>16 Then
            response.Write(left(rs("title"),15))
           Response.write("...")
            
           Else
             response.Write(rs("title"))
            
           End if
           end if%>
                    </a> </td>
                    <td width="69" height="21" align="left" class="date"><%=rs("send_date")%></td>
                  </tr>
                  <%rs.movenext
        loop
        else
        %>
                  <tr>
                    <td colspan="2">暂时还没上传东西</td>
                  </tr>
                  <%
        end if
        
        %>
                </tbody>
        </table>
    </td>
    </tr>
</table>
  </div>
  <div class="tabs_content" id="TabContent" style="display:none;">
  <table width="303"  border="0" cellspacing="1" class="blue">
  <tr>
    <td bgcolor="#FFFFFF">
      <table width="98%"  border="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
  <table height="42" cellspacing="0" cellpadding="0"
                              width="98%" align="center" border="0">
                <tbody>
                  <%
           
            dim young
        young="select top 9 * from young  order by id desc"           
        call opendb()
        rs.open young,conn,1,1
       if not rs.eof then
        do while not rs.eof
        %>
                  <tr>
                    <td width="227" height="21" www.111cn.net align="left"><a href="../listpic.asp?id=<%=rs("id")%>"  target="_blank" class="tomg">&nbsp;›&nbsp;
                          <%if datediff("d",rs(3),date())<4 then
            If len(Rs(4))>=16 Then
            response.Write(left(rs(4),14))
           Response.write("..")
            response.Write("<img src=../index_files/new1.gif width=28 height=11 border=0 />")
           Else
             response.Write(rs(4))
            response.Write("<img src=../index_files/new1.gif width=28 height=11 border=0 />")
           End if
           else
           If len(Rs("title"))>16 Then
            response.Write(left(rs(4),15))
           Response.write("...")
            
           Else
             response.Write(rs(4))
            
           End if
           end if%>
                    </a> </td>
                    <td width="69" height="21" align="left" class="date"><%=rs(3)%></td>
                  </tr>
                  <%rs.movenext
        loop
        else
        %>
                  <tr>
                    <td colspan="2">暂时还没上传东西</td>
                  </tr>
                  <%
        end if
        
        %>
                </tbody>
        </table>
    </td>
    </tr>
</table></div>
 本站原创转载注明来源www.111cn.net

时间: 2024-09-26 21:40:49

js tab选项切换卡代码的相关文章

js实现的tab标签切换效果代码分享_javascript技巧

这是一款基于js实现的tab标签切换效果,是一款无需jQuery,原生javascript制作的tab切换效果源码.点击上面的标题即可实现对应页面的切换功能,非常具有实用价值. 运行效果图:-------------------查看效果 下载源码------------------- 小提示:浏览器中如果不能正常运行,可以尝试切换浏览模式. 为大家分享的js实现的tab标签切换效果代码如下 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans

很棒的js Tab选项卡切换效果_javascript技巧

本文实例为大家分享了js Tab选项卡切换效果,供大家参考,具体内容如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>tab</title> <style> *{margin:0; padding:0; list-style:none;} .box{ width: 1000px; over

一款jquery 实现tab切换卡代码

<!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-

js tab 标签切换代码

每次显示切换,实则只在上一次所显示的和这一次要显示的这二者之间进行切换,但上面这两种被广泛采用的代码,在逻辑上等于脑残,都是对所有关联显示区进行统一隐藏后再显示这次要显示的.对于每个语句的执行机理有所认识的人,会很明确地感受到这种垃圾代码对硬件的摧残和对执行效率的浪费,尤其要切换的显示区数量越多,摧残和浪费越严重. html代码 <span onmousemove="网页特效:showtab('tab',3,1)" id=tab1 class=tab_btn_show>内容

js extjs tab标签切换效果代码

js代码 <script language="javascript"><!-- function settab(m,n){ var tli=document.getElementById("menu"+m).getElementsByTagName("li"); var mli=document.getElementById("main"+m).getElementsByTagName("ul&qu

漂亮的js tab图片轮换效果代码(可自定义的幻灯片和图片缓冲切换)_广告代码

嘉年华 完美冬日 年终庆 妈咪宝贝 冬季氛围 我的幻灯片 1 2 3 4 5

一个tab标签切换效果代码_extjs

HTML: 复制代码 代码如下: <div class="tab"> <div id="tabsK"> <ul id="menu4"> <li onclick="settab(4,0)" class="hover"><a title="最新更新"><span>最新更新</span></a>&l

js 图片幻灯切换效果代码

picChange图片切换特效 - version:0.3.2 - 2010.5.31修改 代码示例:$pic("picChange").picChange({changeStyle:"fade",time:250}); 当前模式:淡出效果,250毫秒. 切换效果淡出效果移出效果联动效果直接切换效果切换时间ms: 切换方向上下左右点击切换(默认鼠标停留时切换) 定时切换[New!]ms(留空则不切换)

基于Jquery的回车成tab焦点切换效果代码(Enter To Tab )_jquery

第一种方法: 复制代码 代码如下: $(document).ready(function () { $(':input:text:first').focus(); $(':input:enabled').addClass('enterIndex'); // get only input tags with class data-entry textboxes = $('.enterIndex'); // now we check to see which browser is being use