分类：电脑/网络-软件-网络软件
问题：网页上像云一样会飘的图片怎么做就是飘来飘去的图片点击它就可以打开 
就是飘来飘去的点击它就可以打开新的连接了！
回答：啊，这不是偶最的漂浮广告嘛，呵呵开玩笑啦～给你找个例子：<script language="JavaScript"><!--if(parseInt( arAt(0))<4){   ef=" "}var mvtLight="/img/ g"var mvtWidth=90var mvtHeight=90var mvtLink=" "var mvtAlt=" "brOK=navigator.javaEnabled()?true:falsens4=( yers)?true:falseie4=( l)?true:falseif(ns4){document.write('<layer id="mvt" width=40 height=60;"><a href="'+mvtLink+'" target=_blank><\/a><\/layer>');}else{document.write('<div id="mvt" style="position:absolute; width:40; height:60;"><a href="'+mvtLink+'" target=_blank><\/a><\/div>');}var vmin=2;var vmax=5;var vr=2;var timer1;//more javascript from  function Chip(chipname,width,height){ d=chipname; this.vx=vmin+vmax*Math.random(); this.vy=vmin+vmax*Math.random(); this.w=width; this.h=height; this.xx=0; this.yy=0; this.timer1=null;}function movechip(chipname){ if(brOK)  {eval("chip="+chipname);  if(ns4)  {pageX= geXOffset;    pageW= nerWidth;    pageY= geYOffset;    pageH= nerHeight;  }  else  {pageX= rollLeft;    pageW= dy.offsetWidth-8;    pageY= rollTop;    pageH= dy.offsetHeight;  }  chip.xx=chip.xx+chip.vx;  chip.yy=chip.yy+chip.vy;  chip.vx+=vr*(Math.random()-0.5);  chip.vy+=vr*(Math.random()-0.5);  if(chip.vx>(vmax+vmin))  chip.vx=(vmax+vmin)*2-chip.vx;  if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;  if(chip.vy>(vmax+vmin))  chip.vy=(vmax+vmin)*2-chip.vy;  if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;  if(chip.xx<=pageX)    {  chip.xx=pageX;    chip.vx=vmin+vmax*Math.random();    }  if(chip.xx>=pageX+pageW-chip.w)    {  chip.xx=pageX+pageW-chip.w;    chip.vx=-vmin-vmax*Math.random();    }  if(chip.yy<=pageY)    {  chip.yy=pageY;    chip.vy=vmin+vmax*Math.random();    }  if(chip.yy>=pageY+pageH-chip.h)    {  chip.yy=pageY+pageH-chip.h;    chip.vy=-vmin-vmax*Math.random();    }  if(ns4){    eval('document.'+ d+'.top ='+chip.yy);    eval('document.'+ d+'.left='+chip.xx);  }  else{    eval(' l.'+ d+'.style.pixelLeft='+chip.xx);    eval(' l.'+ d+'.style.pixelTop ='+chip.yy);  }  chip.timer1=setTimeout("movechip('"+ d+"')",100);    //设置速度，数值越大速度越慢  }}function stopme(chipname){if(brOK)  {//alert(chipname)  eval("chip="+chipname);  if(chip.timer1!=null)  {clearTimeout(chip.timer1)}  }}var mvt;function mvt(){  mvt=new Chip("mvt",60,80);  if(brOK){    movechip("mvt");  }}window.onload=mvt//--></script>把其中的图片地址和链接网站地址改成你自己的就可以啦。