I ve amended the Code from w3schools - Hide paragraph to include a show button which take 6 seconds for the text to show. 案文在被隐藏后开始重新展示,需要约3秒才能这样做? 这里是我修改的法典(将这部法典改成“Hide paragraph”URL on w3schools):
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(3000);
});
$("#show").click(function(){
$("p").show(6000);
});
});
</script>
</head>
<body>
<button id = "hide">Hide</button>
<button id = "show">Show</button>
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>
</body>
</html>