我的一亩三分地 我就喜欢!
13fen  设为主页
 收藏本站
 
当前位置: > 一亩三分地:首页 > 网络学院 > 网络编程 > ASP专区 > Asp客户端/系统 > 抛石头引玉:自制的Tab多标签导航栏。
热门文章排行
热门文章排行 手推车”功能的实现(10-07)
八大法则防范ASP网站漏洞(10-23)
ASP教程十一、调试ASP脚本(10-23)
在JSP中访问数据库大全(10-23)
虚机服务中常见Asp.Net低级错误一览(03-21)
精采文章排行
精采文章排行 ASP.NET实现抓取网页中的链接(11-15)
ASP连接数据库的11种方法(11-10)
如何动态创建网页的RSS内容摘要(11-10)
ASP网站漏洞及入侵防范方法(11-10)
ASP自定义函数:对字符串正则替换(11-10)
技术专题推荐
网管论坛交流
 

抛石头引玉:自制的Tab多标签导航栏。 

作者:佚名   来源:一亩三分地   点击:   日期:2007-03-22

三行三列Tab标签,以iframe作为内容导航窗口。很粗糙了,见笑,如果哪位高手知道如何使整行标签全部移动的最好方法,请一定不忘贴出。

index.htm     //主文件

<!-- by firefly , johnikis@sohu.com -->
<!-- on May 29 , 2002 -->

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>多标签模式菜单 - Test v1.0</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<script language="jscript" src="activemenu.js"></script>
</head>

<body>

<p> </p>

<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="33%"><img id="ai1" src="aiimg_1.gif" width="124" height="26" onclick="acticlick(1,1)" style="cursor:hand;" onmouseover="this.src='aiimg_2.gif'" onmouseout="this.src='aiimg_1.gif'"></td>
    <td width="33%"><img id="ai2" src="aiimg_3.gif" width="124" height="26" onclick="acticlick(1,2)" style="cursor:hand;" onmouseover="this.src='aiimg_4.gif'" onmouseout="this.src='aiimg_3.gif'"></td>
    <td width="34%"><img id="ai3" src="aiimg_5.gif" width="124" height="26" onclick="acticlick(1,3)" style="cursor:hand;" onmouseover="this.src='aiimg_6.gif'" onmouseout="this.src='aiimg_5.gif'"></td>
  </tr>
  <tr>
    <td width="100%" colspan="3">
<div>
<iframe id="ifet1" height="0" width="372" scrolling="auto" src="etext1.htm" frameborder="no"></iframe>
</div>
</td>
  </tr>

<!-- 第二部分开始 -->

<blockquote>
  <tr>
    <td width="33%"><img id="ai4" src="aiimg_7.gif" width="124" height="26" onclick="acticlick(2,1)" style="cursor:hand;" onmouseover="this.src='aiimg_8.gif'" onmouseout="this.src='aiimg_7.gif'"></td>
    <td width="33%"><img id="ai5" src="aiimg_9.gif" width="124" height="26" onclick="acticlick(2,2)" style="cursor:hand;" onmouseover="this.src='aiimg_10.gif'" onmouseout="this.src='aiimg_9.gif'"></td>
    <td width="34%"><img id="ai6" src="aiimg_11.gif" width="124" height="26" onclick="acticlick(2,3)" style="cursor:hand;" onmouseover="this.src='aiimg_12.gif'" onmouseout="this.src='aiimg_11.gif'"></td>
  </tr>

  <tr>
    <td width="100%" colspan="3"><div>
<iframe id="ifet2" height="0" width="372" scrolling="auto" src="etext2.htm" frameborder="no"></iframe>
</div></td>
  </tr>
</blockquote>


<!-- 第三部分开始 -->
  <tr>
    <td width="33%"><img id="ai7" src="aiimg_13.gif" width="124" height="26" onclick="acticlick(3,1)" style="cursor:hand;" onmouseover="this.src='aiimg_14.gif'" onmouseout="this.src='aiimg_13.gif'"></td>
    <td width="33%"><img id="ai8" src="aiimg_15.gif" width="124" height="26" onclick="acticlick(3,2)" style="cursor:hand;" onmouseover="this.src='aiimg_16.gif'" onmouseout="this.src='aiimg_15.gif'"></td>
    <td width="34%"><img id="ai9" src="aiimg_17.gif" width="124" height="26" onclick="acticlick(3,3)" style="cursor:hand;" onmouseover="this.src='aiimg_18.gif'" onmouseout="this.src='aiimg_17.gif'"></td>
  </tr>
  <tr>
    <td width="100%" colspan="3"><div id="etext1">
<iframe id="ifet3" width="372" height="0"  scrolling="auto" src="etext3.htm" frameborder="no"></iframe>
</div></td>
  </tr>
</table>
</body>
</html>


activemenu.js     //js引用文件

<!-- by firefly , johnikis@sohu.com -->
<!-- on May 29 , 2002 -->


function acticlick(rownum,colnum)
{
  var i;
  switch (rownum) {
    case 1:
      document.all("ifet1").style.height="160";
      document.all("ifet2").style.height="0";
      document.all("ifet3").style.height="0";
      for (i=1;i<10;i++) document.all("ai"+i).src="aiimg_"+(i*2-1)+".gif"
      switch (colnum) {
        case 1:
            document.all("ai1").src="aiimg_2.gif";
            document.all("ai2").src="aiimg_3.gif";
            document.all("ai3").src="aiimg_5.gif";
            document.all("ifet1").src="etext1.htm";
          break;
        case 2:
          document.all("ai1").src="aiimg_1.gif";
          document.all("ai2").src="aiimg_4.gif";
          document.all("ai3").src="aiimg_5.gif";
          document.all("ifet1").src="etext2.htm";
          break;
        case 3:
          document.all("ai1").src="aiimg_1.gif";
          document.all("ai2").src="aiimg_3.gif";
          document.all("ai3").src="aiimg_6.gif";
          document.all("ifet1").src="etext3.htm";
&nbs

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:
·ASP中巧用Response属性 ·第六课:ASP脚本循环语句
·在 Web 页上使用条件数值格式 ·连接数据库查询手册(不仅仅适用于asp)
·警惕"给你的FileSystemObject对象加把锁" ·用ASP做全文检索

   文章评论:(条)
  
 请留名: 匿名评论   点击查看所有评论 网管论坛
 

  责任编辑:一分  声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。