jquery果真是利器啊,隐藏标签展示标签只需要根据位置,带上hide()或者show()方法,便可以轻易实现,如下例所示,鼠标移动到最外层,内部的两层,将会发生神奇的变化:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title>无标题文档</title>
<script src="../../开发环境/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload=function(){
  $("#b").hide();
}
function change(){
  $("#a").hide();
  $("#b").show();
}

</script>
</head>

<body>
    <div >超链接</a>
    </div>
 </div>
</body>
</html>

相关文章:

  • 2021-11-07
  • 2021-10-01
  • 2021-11-09
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2022-03-10
  • 2021-07-23
  • 2021-05-16
  • 2021-06-20
  • 2021-10-26
  • 2021-12-29
  • 2022-01-04
相关资源
相似解决方案