14 lines
445 B
JavaScript
14 lines
445 B
JavaScript
$(function(){
|
|
courseOver();
|
|
});
|
|
//当课程信息,鼠标滑过时
|
|
function courseOver(){
|
|
$(".courseList .item").hover(function(){
|
|
$(this).addClass("courseOver").find(".itemMark").animate({top:-142});
|
|
$(this).find(".itemInfo").animate({top:-135*2});
|
|
},function(){
|
|
$(this).removeClass("courseOver").find(".itemMark").animate({top:-45});
|
|
$(this).find(".itemInfo").animate({top:-135-45});
|
|
});
|
|
}
|