最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

js實現仿Windows風格選項卡和按鈕效果實例

 更新時間:2015年05月13日 09:41:22   作者:休閑生活文化  
這篇文章主要介紹了js實現仿Windows風格選項卡和按鈕效果的方法,可實現類似windows選項卡風格的tab標簽效果,需要的朋友可以參考下

本文實例講述了js實現仿Windows風格選項卡和按鈕效果的方法。分享給大家供大家參考。具體實現方法如下:

<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></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" > </td>
<td width="50" height="1" align="center" class="l-c" id="td_2"> </td>
<td width="50" height="1" align="center" class="l-c" id="td_3"> </td>
<td width="50" height="1" align="center" class="l-c" id="td_4"> </td>
<td width="50" height="1" align="center" class="l-c" id="td_5"> </td> 
<td width="50" height="1" align="center" class="l-c" id="td_6"> </td>
<td width="50" height="1" align="center" class="l-c" id="td_"> </td>
<td width="50" height="1" align="center" class="l-r" id="td_"> </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>

運行效果如下:

希望本文所述對大家的javascript程序設計有所幫助。

相關文章

  • 詳解使用Next.js構建服務端渲染應用

    詳解使用Next.js構建服務端渲染應用

    這篇文章主要介紹了詳解使用Next.js構建服務端渲染應用,小編覺得挺不錯的,現在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2018-07-07
  • 詳解js跨域原理以及2種解決方案

    詳解js跨域原理以及2種解決方案

    這篇文章主要介紹了js跨域原理以及解決方案,跨域問題是由于javascript語言安全限制中的同源策略造成的,想要進一步了解跨域的朋友可以參考本文進行學習
    2015-12-12
  • 前端實現截屏的兩種常見方式

    前端實現截屏的兩種常見方式

    這篇文章主要介紹了前端實現截屏的兩種常見方式,分別是使用第三方庫html2canvas和navigator.mediaDevices.getDisplayMedia,兩種方法都給出了詳細的代碼示例,需要的朋友可以參考下
    2025-03-03
  • 很棒的js選項卡切換效果

    很棒的js選項卡切換效果

    很棒的JavaScript選項卡切換效果,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2016-07-07
  • JavaScript Event學習第四章 傳統(tǒng)的事件注冊模型

    JavaScript Event學習第四章 傳統(tǒng)的事件注冊模型

    在這一章我會講解給元素注冊事件的最好的一種辦法,那就是:確保一個特定的事件在特定的HTML元素上發(fā)生并且能運行特定的腳本。
    2010-02-02
  • 使用Three.js制作一個3D獎牌頁面

    使用Three.js制作一個3D獎牌頁面

    本文將使用React+Three.js技術棧,制作一個專屬的3D獎牌頁面,文中的示例代碼講解詳細,感興趣的小伙伴可以跟隨小編一起動手試一試
    2022-01-01
  • layui中l(wèi)ayer前端組件實現圖片顯示功能的方法分析

    layui中l(wèi)ayer前端組件實現圖片顯示功能的方法分析

    這篇文章主要介紹了layui中l(wèi)ayer前端組件實現圖片顯示功能的方法,結合實例形式分析了layui中l(wèi)ayer組件調用圖片顯示功能的操作方法與相關注意事項,并提供了layer與layui源碼下載,需要的朋友可以參考下
    2017-10-10
  • JavaScript中數據過濾的幾種常見方法

    JavaScript中數據過濾的幾種常見方法

    JavaScript是一種廣泛使用的編程語言,它提供了多種方法來對數據進行過濾,在本文中,我們將介紹JavaScript中常見的幾種數據過濾方法,并提供相應的示例,感興趣的朋友跟隨小編一起看看吧
    2023-10-10
  • 用javascript實現自定義標簽

    用javascript實現自定義標簽

    用javascript實現自定義標簽...
    2007-05-05
  • JavaScript自定義Promise實現流程

    JavaScript自定義Promise實現流程

    現在網上有非常多的Promise文章,但都是給你一堆代碼,或者某些核心代碼,讓你看完之后感覺,嗯,很厲害,但還是不知所云,不知其所以然。那么本文真正從一個小白開始帶你深入淺出,一步一步實現自己的?Promise,這種自己造輪子的過程一定是進步最快的過程,快上車開始吧
    2022-10-10

最新評論

新绛县| 道真| 庐江县| SHOW| 黑河市| 大庆市| 壶关县| 壶关县| 乡城县| 高淳县| 财经| 蒙城县| 东源县| 五大连池市| 岳阳县| 霍邱县| 图们市| 和硕县| 珠海市| 雷波县| 宁都县| 宿松县| 安化县| 巴彦县| 台州市| 来安县| 哈尔滨市| 景洪市| 奉新县| 聊城市| 大厂| 华容县| 枣强县| 高要市| 张家港市| 宁波市| 四川省| 浦江县| 中宁县| 德庆县| 锦屏县|