<!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>slideToggle() 方法</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn1").click(function(){
$("p").slideToggle(5000); //5000表示规定元素从隐藏到可见的速度 毫秒 (比如 1500)"slow""normal" "fast"
});
});
</script>
</head>
<body>
<p><img src="images/a2643fed21636e0c279791d3.jpg" height="200" height="147"/></p>
<button class="btn1">大爱薇薇</button>
</body>
</html>