document.write(suspend2);
lastScrollY12=-150;
functionheartBeat12(){
diffY12=document.body.scrollTop;
percent12=.1*(diffY12-lastScrollY12);
if(percent12>0)percent12=Math.ceil(percent12);
elsepercent12=Math.floor(percent12);
document.all.love2.style.pixelTop+=percent12;
lastScrollY12=lastScrollY12+percent12;
}
window.setInterval("heartBeat12()",1);
6.流行QQ在线客服代码:
网页教学网在线联系
functionpicsize(obj,MaxWidth){
img=newImage();//新建一个Image对象,用这个对象的width就不会出现width为0的现象
img.src="/fk/blog/obj.src";
if(img.width>MaxWidth)
{
returnMaxWidth;
}
else
{
returnimg.width;
}
}
--在这里加上一个CSS来控制字体-->
varonline=newArray();
if(!
document.layers)
document.write('absolute">')
";
";if(online[0]==0)
document.write("else
document.write("
";if(online[1]==0)
document.write("else
document.write("
";
//Enter"frombottom"or"fromtop"
varverticalpos="frombottom"
if(!
document.layers)
document.write('')
functionJSFX_FloatTopDiv()
//morejavascript:
{
varstartX=6,
startY=150;
varns=(navigator.appName.indexOf("Netscape")!
=-1);
vard=document;
functionml(id)
{
varel=d.getElementById?
d.getElementById(id):
d.all?
d.all[id]:
d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x=startX;
if(verticalpos=="fromtop")
el.y=startY;
else{
el.y=ns?
pageYOffset+innerHeight:
document.body.scrollTop+document.body.clientHeight;
el.y-=startY;
}
returnel;
}
window.stayTopLeft=function()
{
if(verticalpos=="fromtop"){
varpY=ns?
pageYOffset:
document.body.scrollTop;
ftlObj.y+=(pY+startY-ftlObj.y)/8;
}
else{
varpY=ns?
pageYOffset+innerHeight:
document.body.scrollTop+document.body.clientHeight;
ftlObj.y+=(pY-startY-ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x,ftlObj.y);
setTimeout("stayTopLeft()",10);
}
ftlObj=ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
7.流行QQ在线客服代码:
--首页QQ开始-->
--QQ层-->
varonline=newArray();
if(!
document.layers)
document.write('absolute;width:
115;">')
src="QQ/QQ1.jpg"
useMap=#Map101width=110>
|
src="QQ/QQ11.jpg" width=110> |
src="QQ/QQ12.jpg" width=110> |
background="QQ/QQ2.jpg"
vAlign=centerwidth=110>
if(online[0]==0)
document.write("else
document.write("
|
background="QQ/QQ2.jpg"
vAlign=centerwidth=110>
if(online[1]==0)
document.write("else
document.write("
|
background="QQ/QQ2.jpg"
vAlign=centerwidth=110>
if(online[2]==0)
document.write("else
document.write("
点击在线交谈
值班8:
00-18:
00
|
src="QQ/QQ3.jpg"
width=110>
|
---->
//Enter"frombottom"or"fromtop"
varverticalpos="frombottom"
if(!
document.layers)
document.write('')
functionJSFX_FloatTopDiv()
{
varstartX=0,
startY=400;
varns=(navigator.appName.indexOf("Netscape")!
=-1);
vard=document;
functionml(id)
{
varel=d.getElementById?
d.getElementById(id):
d.all?
d.all[id]:
d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x=startX;
if(verticalpos=="fromtop")
el.y=startY;
else{
el.y=ns?
pageYOffset+innerHeight:
document.body.scrollTop+document.body.clientHeight;
el.y-=startY;
}
returnel;
}
window.stayTopLeft=function()
{
if(verticalpos=="fromtop"){
varpY=ns?
pageYOffset:
document.body.scrollTop;
ftlObj.y+=(pY+startY-ftlObj.y)/8;
}
else{
varpY=ns?
pageYOffset+innerHeight:
document.body.scrollTop+document.body.clientHeight;
ftlObj.y+=(pY-startY-ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x,ftlObj.y);
setTimeout("stayTopLeft()",10);
}
ftlObj=ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
//隐藏和显示QQ在线咨询
functionshowadv(){
if(adv.style.display=="none"){adv.style.display="";//openwin("/QQ/online.asp");
}
}
functionhiddadv(){
if(adv.style.display==""){adv.style.display="none";//openwin("/QQ/offline.asp");
}
}
functionopenwin(url)
{
msgwin=window.open(url,"msg","left=10000,top=1000,width=1,height=1,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
//msgwin.opener.focus();////msgwin.focus();
//returnfalse;
returntrue;
}
hiddadv();
shape=CIRCLEref="#">