30 lines
690 B
Plaintext
30 lines
690 B
Plaintext
|
$(function(){
|
||
|
var a;
|
||
|
$(".cover-list").hover(function(){
|
||
|
|
||
|
if(a){
|
||
|
window.clearTimeout(a)
|
||
|
}
|
||
|
var c=this;
|
||
|
a=window.setTimeout(function(){
|
||
|
var g=$(".detail-frame",c).html();
|
||
|
var i=$(c).offset().left;
|
||
|
var h=$(c).offset().top;
|
||
|
|
||
|
var j=$(c).width()+8;
|
||
|
|
||
|
$("body").append('<div class="detail-tip"></div>');
|
||
|
if($(c).hasClass("r-end")){
|
||
|
$(".detail-tip").html(g).append('<span class="arrow-right"></span>').css("left",i+j-600).css("top",h);
|
||
|
}else{
|
||
|
$(".detail-tip").html(g).append('<span class="arrow-left"></span>').css("left",i+j).css("top",h);
|
||
|
}
|
||
|
|
||
|
},200)
|
||
|
},function(){
|
||
|
if(a){
|
||
|
window.clearTimeout(a)
|
||
|
}
|
||
|
$(".detail-tip").remove()
|
||
|
});
|
||
|
});
|