<!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>无标题文档</title>
</head>
<script language="javascript" src="http://www.tingdong.cn/public/js/jquery.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function (){
$("[id^='ds']").each(function(){
var s = "s" + this.id.replace("ds","");
$(this).toggle(function(){
$("#"+s).show();
$(this).html("隐藏>>");
},function(){
$("#"+s).hide();
$(this).html("展开>>");
});
});
})
</script>
<body>
<div id="ds1">展开>></div>
<span style="display:none" id="s1">111111</span>
<div id="ds2">展开>></div>
<span style="display:none" id="s2">222222</span>
<div id="ds3">展开>></div>
<span style="display:none" id="s3">333333</span>
</body>
</html>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。