Floating framework for website customer service
[code].lt. X; height:150px; background:#ffffff;}
.lt; /style.gt;
.lt; /head.gt;
.lt. This is the content area of the web page.Lt; br.gt;
.Lt; a href=.quot; http://www.jscode.cn/.quot;.Gt; the web special code.Lt; /a.gt;.Lt. .lt; /span.gt;.Lt; br.gt;
.Lt; /div.gt;
.lt; script language=.quot; javascript.quot; br.gt = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 100. -1).Amp;.Amp; (evans_agt.indexOf (.Quot; omniweb.quot;) = = -1));
var evans_mymovey = new Number (); Ans_GetScrollTop () {
return evans_ie? Evans_IeTrueBody ().ScrollTop: window.pageYOffset
}
function evans_heartBeat () {
evans_diffY = =; Uot;.Quot;.Quot;) * default_top_ps) * 0.1);
document.getElementById ('kfoutbox').Style.top = evans_mymovey.Quot; px.quot; TById ('kfboxclose').Onclick = function () {
window.clearInterval (evans_tmpintval);
document.getElementById ('kfoutbox').Style.display ='none'
= 3; > this.Move = function (Id, Evt, T) {
if. Tion =.Quot; absolute.quot;
o.style.zIndex = 200;
var obj = evt.srcElement? Evt.srcElement: evt.target;
> = Cument.createElement (.Quot; DIV.quot;);
document.body.appendChild (DIV);
div.style.cssText =.Quot; filter:alpha (Opacity=10, style=0); Kground:#000.quot;
div.setAttribute (.Quot; id.quot; Id.Quot; temp.quot;);
this.Move_OnlyMove. Return
}
var EVT = Evt? Evt: window.event;
var relLeft = evt.clientX - o.offsetLeft; Window.captureEvents (Event.MOUSEMOVE Event.MOUSEUP)
}
document.onmousemove = function (E) {
if (! O) {
Document.body.clientHeight, document.body.offsetHeight, document.documentElement.scrollHeight, document.documentElement.clientHeight, document.documentElement.offsetHeight);
var BW = Math.max (document.body.scrollWidth, document.body.clientWidth, document.body.offsetWidth, document.body.offsetWidth) DocumentElement.scrollWidth, document.documentElement.clientWidth, document.documentElement.offsetWidth);
var SBW = 0;
if (document.body.scrollWidth.Lt; BW) SBW =; Document.body.clientWidth) SBW = document.body.clientWidth;
if (document.body.offsetWidth.Lt; BW.Amp;.Amp; SBW.Lt). Element.scrollWidth) SBW = document.documentElement.scrollWidth;
if (document.documentElement.clientWidth.Lt; BW.Amp;.Amp; SBW.Lt). .amp;.Amp; SBW.Lt; document.documentElement.offsetWidth) SBW = document.documentElement.offsetWidth;
if (e.clientX - relLeft.Lt; = 0). O.style.left = (SBW - o.offsetWidth - 2).Quot; px.quot;
} else {
o.style.left = e.clientX - relLeft.Quot; } else if (e.clientY - relTop.Gt; = BH - o.offsetHeight - 30) {
o.style.top = (BH - o.offsetHeight).Quot; Nt.onmouseup = function () {
if (! O) return;
if (! Window.captureEvents) {
o.releaseCapture ()
} / > Nt.getElementById (Id);
if (! O1) {
return
}
var l0 = o.offsetLeft;
T0, l, t, T);
document.body.removeChild (o);
o = null
}
}! .quot; ct.quot; Id.#93;}
}
var o = document.getElementById (Id);
if (! O). SL = Math.round (s_l / s_t).Gt; 8? 8: Math.round (s_l / s_t) * 6
> else {
SL = = / >} / > = 8? 8 } else {
st = 0
}
}
if (L0 L.Lt;) {
sl * = = = > = > = > > = > 52. R / > SL = SL.Gt; 0? 2: -2
}
if (Math.abs (t ST - t0).Lt; 0? 2 > if (Math.abs (t ST - t0).Lt; 16.Amp;.Amp; ST) {
st = st =; 0? 1 Tyle.top = t0.Quot; px.quot;
return
} else {
if (Math.abs (L SL); If (Math.abs (t ST - t0).Lt; 2) {
o.style.top = t0.Quot; px.quot;
> = _e ('.quot; Id.Quot;.Quot; l0.Quot;.Quot; t0.Quot;.Quot;