迅雷看看主界面鼠标跟随代码
2008-11-25 20:24 Iron 阅读(278) 评论(0) 编辑 收藏 举报function showItemDetail(movie_name,actors,other_desc,play_time,year,focus,isnew,length,out_rate,attract,cp_id,cp_name,userid,pos){
var o=$("divItemDetail");
var isIndex=(0==pos);
var width=isIndex?200:122;
var lw=isIndex?218:140;
var nSize=isIndex?28:16;
var aSize=isIndex?20:16;
var t=sliceOffset(movie_name,other_desc,nSize);
var ss='';
o.style.width=width+"px";
o.style.overflowX="hidden";
ss+='<div><h1>'+t.first+'<span>'+t.second+'</span></h1><ul><li class="t1">主演:'+sliceActor(actors,aSize,false)+'</li>';
if(isIndex){ss+='<li class="t2">看点:'+focus+'</li><li class="t3">时长:'+length+'分</li>';}else{ss+='<li class="t1">卖点:'+attract+'</li>';};
ss+='<li class="t3">年份:'+year+'</li><li class="t3">人气:'+setHotLevel(play_time,isnew)+'</li>';
ss+='<li class="t5"></li></ul><label style="width:'+lw+'px;">'+(14+""==cp_id+""?'上传者:'+userid:'内容商:'+cp_name)+'</label></div>';
o.innerHTML=ss;
var cw=Math.max(document.body.clientWidth,document.documentElement.clientWidth);
var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
o.style.left=(window.event.clientX+width>cw)?(window.event.clientX-(width+10))+"px":(window.event.clientX-2)+"px";
o.style.top=(window.event.clientY+20+st)+"px";
o.style.display="block";
o=null;
}
function hideItemDetail(){
var o=$("divItemDetail");
o.style.display="none";
o=null;
}
var o=$("divItemDetail");
var isIndex=(0==pos);
var width=isIndex?200:122;
var lw=isIndex?218:140;
var nSize=isIndex?28:16;
var aSize=isIndex?20:16;
var t=sliceOffset(movie_name,other_desc,nSize);
var ss='';
o.style.width=width+"px";
o.style.overflowX="hidden";
ss+='<div><h1>'+t.first+'<span>'+t.second+'</span></h1><ul><li class="t1">主演:'+sliceActor(actors,aSize,false)+'</li>';
if(isIndex){ss+='<li class="t2">看点:'+focus+'</li><li class="t3">时长:'+length+'分</li>';}else{ss+='<li class="t1">卖点:'+attract+'</li>';};
ss+='<li class="t3">年份:'+year+'</li><li class="t3">人气:'+setHotLevel(play_time,isnew)+'</li>';
ss+='<li class="t5"></li></ul><label style="width:'+lw+'px;">'+(14+""==cp_id+""?'上传者:'+userid:'内容商:'+cp_name)+'</label></div>';
o.innerHTML=ss;
var cw=Math.max(document.body.clientWidth,document.documentElement.clientWidth);
var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
o.style.left=(window.event.clientX+width>cw)?(window.event.clientX-(width+10))+"px":(window.event.clientX-2)+"px";
o.style.top=(window.event.clientY+20+st)+"px";
o.style.display="block";
o=null;
}
function hideItemDetail(){
var o=$("divItemDetail");
o.style.display="none";
o=null;
}