我的图片为什么轮播不了?
<!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=utf-8" />
<title>slideToggle()</title>
<script src="../jquery 1.12.2.js" type="text/javascript"></script>
<link href="7-5-1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h3>使用slideToggle()方法实现图片"变脸"效果</h3>
<div id="divtest1">
<img src="../../Image/开心果/002.jpg" alt="" />
</div>
<div id="divtsst2">
<img src="../../Image/开心果/003.jpg" alt="" />
</div>
<script type="text/javascript">
$(function(){
var $div1=$("#divtest1");
var $div2=$("#divtsst2");
$div1.bind("click",function(){
$div1.slideToggle(3000,function(){
$div.slideToggle(3000);
});
});
$div2.bind("click",function(){
$div2.slideToggle(3000,function(){
$div1.slideToggle(3000);
});
});
});
</script>
</body>
</html>
-----
div
{
margin:10px 0px;
border:solid 1px #ccc;
width:300px;
}
.divtest1
{
margin:0px;
pdding:5px;
}
.divtest2
{
margin:0px;
padding:5px;
float:right;
}
我的图片为什么轮播不了?还有就是我的第二张图片为什么浮动不上去啊?