2010-01-28 13:32:00 阅读2 评论0 字号:大中小
<div class="boxgrid peek">
<a href="http://feeds2.feedburner.com/buildinternet" target="_blank">
<img src="images/birss.jpg"/></a>
<a href="http://www.buildinternet.com" target="_blank"><img class="cover"
src="images/buildinternet.jpg"/></a>
</div>
*{ padding:0px; margin:0px; }
body{ background:#D5DEE7;padding:50px; }
a{ color:#C8DCE5; }
h3{ margin:10px 10px 0 10px; color:#FFF; font:bold 18pt Arial, sans-serif;
letter-spacing:-1px; }
.boxgrid{ width: 325px; height: 260px; margin:10px; background:#161613;
border: solid 2px #8399AF;overflow: hidden; position: relative;}
.boxgrid img{position: absolute; top: 0; left: 0; border: 0; }
.boxgrid p{ padding: 0 10px; color:#afafaf; font-weight:bold;
font:10pt "Lucida Grande", Arial, sans-serif; }
<script type="text/javascript" src="images/jquery-1.3.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//Partial Sliding (Only show some of background)
$('.boxgrid.peek').hover(function(){
$(".cover", this).stop().animate({top:'90px'},
{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'0px'},
{queue:false,duration:160});
});
})
</script>