document.writeln(" <div id=\"ad\" style=\"position:absolute;\">");
document.writeln("    <iframe src=\"images\/piaofu.html\" width=\"240\" marginwidth=\"0\" height=\"130\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\"><\/iframe>");
document.writeln("  <\/div>");
document.writeln("  <script>");
document.writeln("  var x = 50,y = 60");
document.writeln("  var xin = true, yin = true");
document.writeln("  var step = 1 ");
document.writeln("  var delay = 16");
document.writeln("  var obj=document.getElementById(\"ad\") ");
document.writeln("  function floatAD() {");
document.writeln("     var L=T=0");
document.writeln("     var R= document.body.clientWidth-obj.offsetWidth");
document.writeln("     var B = document.body.clientHeight-obj.offsetHeight");
document.writeln("     obj.style.left = x + document.body.scrollLeft");
document.writeln("     obj.style.top = y + document.body.scrollTop");
document.writeln("     x = x + step*(xin?1:-1)  ");
document.writeln("     if (x < L) { xin = true; x = L} ");
document.writeln("     if (x > R){ xin = false; x = R} ");
document.writeln("     y = y + step*(yin?1:-1) ");
document.writeln("     if (y < T) { yin = true; y = T } ");
document.writeln("     if (y > B) { yin = false; y = B } ");
document.writeln("  }");
document.writeln("  var itl= setInterval(\"floatAD()\", delay) ");
document.writeln("obj.onmouseover=function(){clearInterval(itl)} ");
document.writeln("obj.onmouseout=function(){itl=setInterval(\"floatAD()\", delay)}");
document.writeln("  <\/script> ");

