.product-details .show-left .middle-part {
left: 700px;
}
.product-details .banner .middle-part {
left: 155px;
width: 145px;
}
看这几个值的变化
left: 700px;
}
.product-details .banner .middle-part {
left: 155px;
width: 145px;
}
看这几个值的变化
解决方案 »
- 怎么把变量名转换成字符串
- 该JavaScript代码为什么不能在Firefox中正确运行?
- 如何实现点<input type="file" name="file1" id="file1">浏览图显示问题
- (JS替换)正则表达式中可否带变量?
- JS制作的幻灯片的问题
- 如何判断一个jsp页面是否经过framest框架打开
- 帮忙看看这个错误,谢谢
- 在一个页面里做一个小的FrontPage!??
- ****当选择IE菜单--〉文字大小来改变页面字体大小的时候,能否在点击完该菜单选项后响应一个JS程序(如弹出警告alert窗口)?
- void(0)什么意思!vSrc = window.event.srcElement;什么意思一定要说说event对象的意义和内容
- 求助这种技术叫什么??
- JQuery 加.CSS() 不往下执行代码
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<title>Slide Sample</title>
<style type="text/css">
body {
background-color: #6efd9d;
}/* container-struts
**************************/
.container {
margin: 0 auto;
width: 1000px;
height: 460px;
overflow: hidden;
}
.container .pool {
height: 460px;
width: 8000px;
}
.container .pool .scope {
float: left;
width: 145px;
overflow: hidden;
margin-left: 10px;
cursor: pointer;
}
.container .pool .scope img {
margin-left: -150px;
}
</style>
</head><body>
<div class="container">
<div class="pool">
<div class="scope" style="margin-left:0;width:690px">
<img src="http://hiphotos.baidu.com/pay-operone/wh%3D690%2C460/sign=3c98994dfc1986184112e78273dd0247/d0c8a786c9177f3ee88ae02174cf3bc79f3d565b.jpg" style="margin-left:0" />
</div>
<div class="scope">
<img src="http://hiphotos.baidu.com/pay-operone/wh%3D690%2C460/sign=18b4bcd6d5c8a786be7f42085e39e509/cb8065380cd79123aa768858a9345982b2b78003.jpg" />
</div>
<div class="scope">
<img src="http://hiphotos.baidu.com/pay-operone/wh%3D690%2C460/sign=356312db9b3df8dca6688797f4215ebf/b3b7d0a20cf431ad8e435f154f36acaf2edd980c.jpg" />
</div>
</div>
<div>
<script type="text/javascript">
$(".container .pool .scope").each(function() {
$(this).mouseenter(function(evt) {
var that = this;
$(".container .pool .scope").each(function() {
if (that == this) {
$(this).stop(true, false).animate({width: "690px"}, "slow");
$(this).find("img").stop(true, false).animate({marginLeft: "0"}, "slow");
} else {
$(this).stop(true, false).animate({width: "145px"}, "slow");
$(this).find("img").stop(true, false).animate({marginLeft: "-150px"}, "slow");
}
});
});
});
</script>
</body>
</html>