9999热视频三级毛片AV区|日韩欧美精品狼友观看视频|av在线成人免费AA片|日韩三级AV电影|久久亚洲私人国产精品vA|亚洲无码卡一卡二卡三|手机在线免费看黄色片|婷婷尹人在线婷婷五月手机网|99爱在线播放|欧美成人色情视频品

多層層顯示js
來源:易賢網 閱讀:1137 次 日期:2014-10-09 10:31:02
溫馨提示:易賢網小編為您整理了“多層層顯示js”,方便廣大網友查閱!

多層層顯示js

多層層顯示js<!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>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>多層層顯示js</title>

</head>

<script language="javascript">

function showdiv(i)

{

document.getElementById("tag1").style.display="none";

document.getElementById("tag2").style.display="none";

document.getElementById("tag3").style.display="none";

document.getElementById("tag4").style.display="none";

document.getElementById("tag"+i).style.display="";

}function showdiv2(i,allnum)

{

for(temp=1;temp<allnum+1;temp++)

{

if (temp==i){document.getElementById("tag"+temp).style.display="";}else{document.getElementById("tag"+temp).style.display="none";}

}

}

</script>

<body>

<a href="#" onmouseover="showdiv(1);">1</a>

<a href="#" onmouseover="showdiv(2);">2</a>

<a href="#" onmouseover="showdiv(3);">3</a>

<a href="#" onmouseover="showdiv(4);">4</a>

<div id="tag1" >測試1</div>

<div id="tag2" style="display:none;">測試2</div>

<div id="tag3" style="display:none;">測試3</div>

<div id="tag4" style="display:none;">測試4</div>

<br />

<a href="#" onmouseover="showdiv2(1,4);">1</a>

<a href="#" onmouseover="showdiv2(2,4);">2</a>

<a href="#" onmouseover="showdiv2(3,4);">3</a>

<a href="#" onmouseover="showdiv2(4,4);">4</a>

</body>

</html>

更多信息請查看IT技術專欄

更多信息請查看腳本欄目
易賢網手機網站地址:多層層顯示js
關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網