<script type="text/javascript" src="js/jquery.min.js"></script> $('#star dl dt').each(function(i){
$(this).css('background','url(images/starimg.jpg) 0 ' + i * -61 +'px no-repeat').parent().attr('i',i);
});
var starHoverT;
$('#star').delegate('dl','mouseenter',function(){
clearTimeout(starHoverT);
var n = $('#star dl:visible').index($(this)),h = $(this).attr('h'),i=$(this).attr('i');
starHoverT = setTimeout(function(){
if($('#starHover').css('width') != '0px'){
var curY = $('#starHover').css('top').replace('px','');
var oneY = curY > n * 87 ? 24 : 10,
twoY = oneY == 10 ? 24 : 10;
$('#starHover').stop().animate({'top':n * 87 - oneY},100).animate({'top':n * 87 - twoY},100).animate({'top':n * 87 - 18},50);
}else{
$('#starHover').css({'top':n * 87 - 18}).html('<b></b>');
$('#starHover').animate({'width':226},200);
}
$('#starHover b').css('margin-top',i * -127).parent().attr('href',h);
},200);
});
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
