转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 站长学院 >> Web开发 >> 正文
javascript 如何实现标签式按纽         ★★★★

javascript 如何实现标签式按纽

作者:闵涛 文章来源:闵涛的学习笔记 点击数:689 更新时间:2009/4/23 11:25:53

截图

******************************************************

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">
<!--
body{font-family: 'MS Shell Dlg', 宋体, Tahoma;font-size: 12px;background-color: #336699;color:#000000;}
td, div, input, textarea{font-family: 'MS Shell Dlg', 宋体, Tahoma;font-size: 12px;cursor: default;}
.title{background-color: #000080;color:#fdf7d3;padding: 1;font-family:宋体;font-size:12px;}
.up{background-color: #cccccc;color:#000000;border: 2px outset #ffffff}
.down{background-color: #cccccc;border:2px inset #ffffff}
.up1{background-color: #cccccc;color: #000000;border: 1px outset #ffffff}
.down1{background-color:#cccccc;border:1px inset #ffffff}
.l           { background-color: #cccccc; height: 18px; border-left: 2px outset #ffffff;
               border-right: 2px outset #ffffff; color:#000000;
               border-top: 2px outset #ffffff; padding-top: 2;height:18}
.lc           { background-color: #cccccc; height: 18px; border-left: 2px outset #ffffff;
               border-right: 2px outset #ffffff; color:#000000;
               border-top: 2px outset #ffffff; padding-top: 2;height:20}
.l-h         { background-color: #cccccc; border-left: 2px outset #ffffff ; border-top: 2px outset #ffffff;color:#000000; }
.l-c         { background-color: #cccccc; border-top: 2px outset #ffffff }
.l-r         { background-color: #cccccc; border-right: 2px outset #ffffff; border-top: 2px outset #ffffff;color:#000000;}
.l-hc         { background-color: #cccccc; border-left: 2px outset #ffffff;color:#000000;}
.l-cc         { background-color: #cccccc;color:#000000; }
.l-rc         { background-color: #cccccc; border-right: 2px outset #ffffff;color:#000000;}
td{color:#000000;}
-->
</style>
<title>标签式按纽</title>

</head>

<body style="border:outset 1 #ffffff;margin: 0;background-color: #cccccc;padding:3px" scroll=no>
<SCRIPT LANGUAGE="JavaScript">
<!--
function restore()
{
td1.className="l";td2.className="l";td3.className="l";td4.className="l";td5.className="l";td6.className="l";
td_1.className="l-h";td_2.className="l-c";td_3.className="l-c";td_4.className="l-c";td_5.className="l-c";td_6.className="l-c";
w1.style.display="none";w2.style.display="none";w3.style.display="none";w4.style.display="none";w5.style.display="none";w6.style.display="none";
}
function c1()
{
td1.className="lc";
td_1.className="l-hc";
w1.style.display="block";
}
function c2()
{
td2.className="lc";
td_2.className="l-cc";
w2.style.display="block";
}
function c3()
{
td3.className="lc";
td_3.className="l-cc";
w3.style.display="block";
}
function c4()
{
td4.className="lc";
td_4.className="l-cc";
w4.style.display="block";
}
function c5()
{
td5.className="lc";
td_5.className="l-cc";
w5.style.display="block";
}
function c6()
{
td6.className="lc";
td_6.className="l-cc";
w6.style.display="block";
}
//-->
</SCRIPT>
<form name="free" method="post" target="_target">
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="400" height="61">
    <tr>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c1();><div id="td1" class="lc">背景</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c2();><div id="td2" class="l">屏保</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c3();><div id="td3" class="l">外观</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c4();><div id="td4" class="l">Web</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c5();><div id="td5" class="l">效果</div></td>
      <td width="50" height="20" align="center" valign="bottom" onclick=restore();c6();><div id="td6" class="l">设置</div></td>
      <td width="50" height="20" align="center" valign="bottom" ></td>
      <td width="50" height="20" align="center" valign="bottom"></td>
    </tr>
    <tr  style="">
      <td width="50" height="1" align="center" class="l-hc" id="td_1" >&nbsp;</td>
      <td width="50" height="1" align="center" class="l-c" id="td_2">&nbsp;</td>
      <td width="50" height="1" align="center" class="l-c" id="td_3">&nbsp;</td>
      <td width="50" height="1" align="center" class="l-c" id="td_4">&nbsp;</td>
      <td width="50" height="1" align="center" class="l-c" id="td_5">&nbsp;</td>
      <td width="50" height="1" align="center" class="l-c" id="td_6">&nbsp;</td>
      <td width="50" height="1" align="center" class="l-c" id="td_">&nbsp;</td>
      <td width="50" height="1" align="center" class="l-r" id="td_">&nbsp;</td>
    </tr>
    <tr>
      <td width="398" height="360" class="up" colspan="8" style="border-top-style: solid; border-top-width: 0; padding: 5">
        <p align="center">
        <div align="center">
          <table border="0" cellpadding="0" cellspacing="0" width="100%" height="325">
            <tr>
              <td width="100%" height="280">
            

             <div align="center">
              <center>
<div style="display:" id=w1><h1>1</h1></div>
<div style="display:none" id=w2><h1>2</h1></div>
<div style="display:none" id=w3><h1>3</h1></div>
<div style="display:none" id=w4><h1>4</h1></div>
<div style="display:none" id=w5><h1>5</h1></div>
<div style="display:none" id=w6><h1>6</h1></div>
              </center>
             </div>
            

             </td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
  </center>
    <tr>
      <td width="398" height="37" colspan="8" style="border-top-style: solid; border-top-width: 0; padding: 5">
        <p align="right"><input type="button" value="确定" name="_ok" style="width: 60;height:22" class=up>
        <input type="button" value="取消" name="_cancel" style="width: 60;height:22" class=up onclick="window.close();">
        <input type="button" value="应用(A)" name="_apply" style="width: 60;height:22" disabled class=up>
      </td>
    </tr>
  </table>
</div>
</form>
</body>
</html>


[Web开发]用PHP实现Javascript的escape(),unescape()的方法  [网页制作]Javascript获取各种浏览器可见窗口大小
[网页制作]Javascript 表单之间的数据传递  [网页制作]用 Javascript 写的一个映射表类
[网页制作]Javascript 编写的文字放大效果  [网页制作]在CSS样式表里使用JavaScript
[网页制作]Javascript +CSS横向三级导航菜单  [网页制作]CSS+JavaScript打造超酷右键菜单
[网页制作]CSS+JavaScript打造超酷右键菜单(2)  [网页制作]CSS+javascript特效赏析
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Web开发  · 网页制作
    · 平面设计  · 网站运营
    · 网站推广  · 搜索优化
    · 建站心得  · 站长故事
    · 互联动态
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台