tabs标签切换
<!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>
??? <title>用戶信息</title>
??? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
??? <link rel="stylesheet" type="text/css" href="css/ask.css" />
</head>
<body>
??? <div class="userinfo">
??????? <div class="title" id="title">
??????????? <a href="#" class="default" οnclick="selectObj(this)" id="grzl">個(gè)人資料</a> <a href="#"
??????????????? class="current" id="xgmm" οnclick="selectObj(this)">修改密碼</a> <a href="#" class="default"
??????????????????? id="xgtx" οnclick="selectObj(this)">修改頭像</a>
??????? </div>
??????? <div class="content">
??????????? <table cellpadding="0" cellspacing="3" border="0">
??????????????? <tr>
??????????????????? <td align="right">
??????????????????????? <b>用戶名:</b>
??????????????????? </td>
??????????????????? <td>
??????????????????????? Admin
??????????????????? </td>
??????????????? </tr>
??????????????? <tr>
??????????????????? <td align="right">
??????????????????????? <b>當(dāng)前密碼:</b>
??????????????????? </td>
??????????????????? <td>
??????????????????????? <input type="text" />
??????????????????? </td>
??????????????? </tr>
??????????????? <tr>
??????????????????? <td align="right">
??????????????????????? <b>新密碼:</b>
??????????????????? </td>
??????????????????? <td>
??????????????????????? <input type="text" />
??????????????????? </td>
??????????????? </tr>
??????????????? <tr>
??????????????????? <td align="right">
??????????????????????? <b>確認(rèn)密碼:</b>
??????????????????? </td>
??????????????????? <td>
??????????????????????? <input type="text" />
??????????????????? </td>
??????????????? </tr>
??????????????? <tr>
??????????????????? <td>
??????????????????? </td>
??????????????????? <td>
??????????????????????? <input type="submit" value=" " class="btnok" />
??????????????????? </td>
??????????????? </tr>
??????????? </table>
??????? </div>
??? </div>
??? <script type="text/javascript">
??????? function selectObj(obj) {
??????????? var objArray = document.getElementById("title").getElementsByTagName("a"); //得到title 下 所有 a 對(duì)象 為數(shù)組
??????????? var count = objArray.length;? //得到數(shù)組selects長(zhǎng)度
??????????? for (var i = 0; i < count; i++) {? //將所有選項(xiàng)都置為不選中
??????????????? objArray[i].className = "default";
??????????? }
??????????? obj.className = "current";? //選中當(dāng)前項(xiàng)
??????? }
??? </script>
</body>
</html>
轉(zhuǎn)載于:https://www.cnblogs.com/xinlei/archive/2011/09/02/2164384.html
總結(jié)
- 上一篇: hive实现not in
- 下一篇: sspanel 常用审计规则