Floating framework for website customer service

time:15-04-13 forum:HTML web page, JS language and code
  http://blog.csdn.net/wangruiguang_/arti... Ls/7683469

[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;

prev:The 88 year old man and the 86 year old ... next:May 1 holiday, Shandong express free Ji'...
post comment
Notice



approved   Ji'nan's Daming Lake scenic area is ...   Ji'nan free Scenic Area   What is the living condition of the ...   The family photo played by their par...   The universal Handbook of life in Ji...
rand   JS control      MTop HTML web page password lock 5.3   Control the window location of the i...   Anti iframe theft chain detection in...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com