简单点儿的,用prettyPhoto等jQuery特效插件也行
我的QQ:1402331052,有需要的话加<html>
<head>
<script language="javascript">
function showA(){
var divAll = document.getElementsByTagName("div")
if(divAll[0].style.display == "block"){
for(var index = 0 index<divAll.lengthindex++){
divAll[index].style.display = "none"
}
}else{
for(var index = 0 index<divAll.lengthindex++){
divAll[index].style.display = "block"
}
}
}
</script>
</head>
<body>
<input type="button" value="change" onclick="showA()"><br><br>
<div style="border:#ff9900 1 soliddisplay:block">a</div>
<br>
<div style="border:#ff9900 1 solid">b</div>
<br>
<div style="border:#ff9900 1 solid">c</div>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)