<style type="text/css">
/* case */
.case{margin:0 auto;width:auto;}
.case li{float:left;display:inline;margin-right:22px;margin-left:22px;width:275px;height:215px; background:url(dz7/images/bg_case_f.png) center bottom no-repeat;position:relative;}
.case li .case_w{display:block;width:262px;height:145px;padding:20px;background:url(dz7/images/bg_case.png) no-repeat;position:absolute;bottom:14px;left:0px;}
.case li .case_w .fire{background:#000;opacity:0.5;filter:alpha(opacity=50);position:absolute;top:20px;left:20px;width:262px;height:148px;z-index:2;display:none; text-align:center; }
.case li .case_w .x,.case li .case_w .y{width:61px;height:61px;top:60px;position:absolute;z-index:3;display:none;}
.case li .case_w .x{background:url(dz7/images/zoom-icon.png); left: 50px;}
.case li .case_w .y{background:url(dz7/images/readmore-icon.png);right:50px;}
</style>
<script type="text/javascript" src="dz7/js/jq-1.7.2.min.js"></script>
<ul class="case">
[loop]
<li>
<div class="case_w">
<img alt="{title}" width="{picwidth}" height="{picheight}" src="{pic}">
<div class="fire"></div>
<a href="{url}" class="x"></a>
<a href="{url}" class="y"></a>
</div>
</li>
[/loop]
</ul>
<script type="text/javascript">
jQuery.noConflict();
var jq=jQuery;
jq(function(){
jq(".case li").hover(function(){
jq('.case_w',this).stop().animate({"bottom":"30px"},400);
jq(".x",this).stop().css({'left':'50px'}).animate({'left':"80px"},400).show();
jq(".y",this).stop().css({'right':'50px'}).animate({'right':"80px"},400).show();
jq('.fire',this).show();
},function(){
jq('.case_w',this).stop().animate({"bottom":"14px"},400);
jq('.fire, .x, .y',this).hide();
});
});
</script>
</div>
|