A scalable layer JS with a buffering effect on the right side of a web page
[code].lt;! /.gt;
.lt; title.gt; -www.jsweb8.cn.lt, /title.gt,
.lt, style type=.quot, -www.jsweb8.cn.lt, -www.jsweb8.cn.lt, /title.gt;
.lt; style type=.quot; Ackground:#fff; z-index:88}
#cli_on{width:30px; height:180px; float:left; cursor:pointer; background:#ac8932; text-align:center; line-height:180px}
.lt; /style.gt;
.lt; div id=.quot; common_box.quot;.Gt;
.Lt; div id=.quot; cli_on.quot;.Gt. Effect.Lt; /a.gt;.Lt; /li.gt;
.lt; li.gt;.Lt; a href=.quot; http://www.jsweb8.cn.quot;.Gt; Scalable layer.Lt with buffering effect; /li.gt;
.lt; li.gt; content can be used as a template for customer service, menu, or socialized sharing. In a word, you can define.Lt arbitrarily; /li.gt;
.lt; /ul.gt;
; T/javascript.quot;.Gt;
window.onload = function () {
var combox = document.getElementById (.Quot; common_box.quot;); If no dynamic effect is required, these two sentences are enough to be
combox.style.right = flag?'-270px': 0;
flag =! Flag;
*/
clearTimeout (initime);
/ > = > = > > = > > = > = > = 0;
= > > >}} {
r_len = -270;
timer = setInterval (slideleft, 10);
}
}
>! .right = r_len'px';
}
}
function slideleft. Page > auto >
initime = setTimeout (.Quot; cli_on.click ().Quot; 3000);
}
.lt; /script.gt; />}
/ / load 3 seconds after page loading.