教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> 编程基地 >> ASP >> 抛石头引玉:自制的Tab多标签导航栏。 RSS订阅
抛石头引玉:自制的Tab多标签导航栏。
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   
三行三列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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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='http://www.blue1000.com/bkhtml/2005-11/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";
          break;
       }
       break;


    case 2:
      document.all("ifet1").style.height="0";
      document.all("ifet2").style.height="160";
      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("ai4").src=../../"aiimg_8.gif";
          document.all("ai5").src=../../"aiimg_9.gif";
          document.all("ai6").src=../../"aiimg_11.gif";
          document.all("ifet2").src=../../"etext1.htm";
          break;
        case 2:
          document.all("ai4").src=../../"aiimg_7.gif";
          document.all("ai5").src=../../"aiimg_10.gif";
          document.all("ai6").src=../../"aiimg_11.gif";
          document.all("ifet2").src=../../"etext2.htm";
          break;
        case 3:
          document.all("ai4").src=../../"aiimg_7.gif";
          document.all("ai5").src=../../"aiimg_9.gif";
          document.all("ai6").src=../../"aiimg_12.gif";
          document.all("ifet2").src=../../"etext3.htm";
          break;
       }
       break;


    case 3:
      document.all("ifet1").style.height="0";
      document.all("ifet2").style.height="0";
      document.all("ifet3").style.height="160";
      for (i=1;i<10;i++) document.all("ai"+i).src=../../"aiimg_"+(i*2-1)+".gif"
      switch (colnum) {
        case 1:
          document.all("ai7").src=../../"aiimg_14.gif";
          document.all("ai8").src=../../"aiimg_15.gif";
          document.all("ai9").src=../../"aiimg_17.gif";
          document.all("ifet3").src=../../"etext1.htm";
          break;
        case 2:
          document.all("ai7").src=../../"aiimg_13.gif";
          document.all("ai8").src=../../"aiimg_16.gif";
          document.all("ai9").src=../../"aiimg_17.gif";
          document.all("ifet3").src=../../"etext2.htm";
          break;
        case 3:
          document.all("ai7").src=../../"aiimg_13.gif";
          document.all("ai8").src=../../"aiimg_15.gif";
          document.all("ai9").src=../../"aiimg_18.gif";
          document.all("ifet3").src=../../"etext3.htm";
          break;
       }
       break;

   }      
}



//里面有三个iframe外部引用文件etext1(2,3).htm需自制。


来源:upschool.com.cn
作者:
关键字:抛石头引玉,自制
发表日期:2005-11-19

网页显示有限 阅读全文请下载本文完整版WORD文档

上一篇:给你一个js(转自51js)   下一篇:to hiller:利用脚本控制表格单元的内容(原创)


2009-1-8 23:41:04
本文的相类似文章
  • 用KV2005自制U盘软驱DOS杀毒
  • 如何自制 bootdisk
  • 自制Liunx的开机画面
  • 精彩:自制纸上游戏漫谈
  • 自制IE风格按纽控件
  • 自制VB数值框
  • 利用VB自制OCX控件
  • 自制透明ActiveX控件
  • 用VB自制屏幕保护程序
  • 如何自制 MetaFile
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com