lastscrolly = 0; var graysrc = false; var intertime = 1; var maxwidth = -1; var minwidth = -128; var numinter = 8; var biginter; var smallinter; var o = null; var i = 0; www97zzwcom = function(id, _top, _left) { var me = id.charat ? document.getelementbyid(id) : id, d1 = document.body, d2 = document.documentelement; d1.style.height = d2.style.height = '100%'; me.style.top = _top ? _top + 'px' : 0; me.style.left = _left + "px"; me.style.position = 'absolute'; me.style.display = 'block'; setinterval(function() { me.style.top = parseint(me.style.top) + (math.max(d1.scrolltop, d2.scrolltop) + _top - parseint(me.style.top)) * 0.1 + 'px'; }, 10 + parseint(math.random() * 20)); return arguments.callee; }; $(document).ready(function() { var html = ''; html += '
'; $(document.body).append(html); o = document.getelementbyid("www97zzwcom"); i = parseint(o.style.left); www97zzwcom('www97zzwcom', 210, -128); }); function big() { if (parseint(o.style.left) < maxwidth) { i = parseint(o.style.left); i += numinter; o.style.left = i + "px"; if (i == maxwidth) clearinterval(biginter); } if (!graysrc) { $(o).find("img").each(function() { $(this).attr("src", $(this).attr("original")); }); graysrc = true; } } function tobig() { clearinterval(smallinter); clearinterval(biginter); biginter = setinterval(big, intertime); } function small() { if (parseint(o.style.left) > minwidth) { i = parseint(o.style.left); i -= numinter; o.style.left = i + "px"; if (i == minwidth) clearinterval(smallinter); } } function tosmall() { clearinterval(smallinter); clearinterval(biginter); smallinter = setinterval(small, intertime); }