//有不明白的问技术部
//            --乖乖狼
			var RandomSrc2 = "http://img1.zz31.com/6/20090810/633854940191875000.gif"              //飘动图片地址
			var RandomFlash2 = "gif"                         //飘动图片类型
			var RandomHref2 = "http://www.zz31.com/st305"     //飘动图片连接地址
			var RandomWidth2 = "80"                              //飘动图片宽度
			var RandomHeight2 = "80"                            //飘动图片高度

document.write("<DIV id=img2 style=\"LEFT: 90px; z-index: 999; VISIBILITY: visible; width2: 90px; POSITION: absolute; TOP: 90px; height2: 90px\">")
document.write("<a href=\"" + RandomHref2 +"\"><img src=\"" + RandomSrc2 + "\"  width2=\"" + RandomWidth2 + "\" height2=\"" + RandomHeight2 + "\"  border=\"0\" \></a>");
document.write("</DIV>");

var xPos2 = 30;
var yPos2 = 30;
var step2 = 1;
var delay2 = 30; 
var width2,height2,Hoffset2,Woffset2;
var y2 = 0;
var x2 = 0;
var interval2;
img2.visibility = "visible";

function changePos2() 
{
  width2 = document.documentElement.clientWidth;
  height2 = document.documentElement.clientHeight;
  Hoffset2 = img2.offsetHeight;
  Woffset2 = img2.offsetWidth;
  img2.style.left= xPos2;
  img2.style.top = yPos2 + document.documentElement.scrollTop;
  if (y2) 
  {
    yPos2 = yPos2 + step2;
  }
  else 
  {
    yPos2 = yPos2 - step2;
  }
  if (yPos2 < 0) 
  {
    y2 = 1;
    yPos2 = 0;
  }
  if (yPos2 >= (height2 - Hoffset2)) 
  {
    y2 = 0;
    yPos2 = (height2 - Hoffset2);
  }
  if (x2) 
  {
    xPos2 = xPos2 + step2;
  }
  else 
  {
    xPos2 = xPos2 - step2;
  }
  if (xPos2 < 30) 
  {
    x2 = 1;
    xPos2 = 30;
  }
  if (xPos2 >= (width2 - Woffset2)) 
  {
    x2 = 0;
    xPos2 = (width2 - Woffset2);
  }
 
}
function start2() 
{
  interval2 = setInterval('changePos2()', 30);
}

start2();
