问题描述
如题:请问网站上的漂浮的广告和其他的特效广告是用什么控件做的~?请指点迷津!
解决方案
解决方案二:
div
解决方案三:
jquery可以做到很简单
解决方案四:
jquery是javascript吗?
解决方案五:
javascript就可以很好的实现.网上有很多的这个,去找个就OK了.
解决方案六:
给你个参考参考呵:<scriptLANGUAGE="JavaScript"><!--BeginvarbrOK=false;varmie=false;varaver=parseInt(navigator.appVersion.substring(0,1));varaname=navigator.appName;functioncheckbrOK(){if(aname.indexOf("InternetExplorer")!=-1){if(aver>=4)brOK=navigator.javaEnabled();mie=true;}if(aname.indexOf("Netscape")!=-1){if(aver>=4)brOK=navigator.javaEnabled();}}varvmin=2;varvmax=5;varvr=0.02;vartimer1;functionChip(chipname,width,height){this.named=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;}functionmovechip(chipname){if(brOK){eval("chip="+chipname);if(!mie){pageX=window.pageXOffset;pageW=window.innerWidth;pageY=window.pageYOffset;pageH=window.innerHeight;}else{pageX=window.document.body.scrollLeft;pageW=window.document.body.offsetWidth-22;pageY=window.document.body.scrollTop;pageH=window.document.body.offsetHeight-34;}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(!mie){eval('document.'+chip.named+'.top='+chip.yy);eval('document.'+chip.named+'.left='+chip.xx);}else{eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);eval('document.all.'+chip.named+'.style.pixelTop='+chip.yy);}chip.timer1=setTimeout("movechip('"+chip.named+"')",140);}}functionhide(chipname){if(brOK){eval("chip="+chipname);if(!mie)eval('document.'+chip.named+'.visibility='+"'hide'");elseeval('document.all.'+chip.named+'.style.visibility='+"'hidden'");}}functionstopme(chipname){if(brOK){eval("chip="+chipname);if(chip.timer1!=null){clearTimeout(chip.timer1)}}}varchip1;functionpagestart(){checkbrOK();chip1=newChip("chip1",117,75);if(brOK){movechip("chip1");}}//if(brOK){stopme('chip1');}//End--></script><DIVid="chip1"style="LEFT:180px;VISIBILITY:visible;WIDTH:176px;POSITION:absolute;TOP:157px;HEIGHT:64px"><TABLEborder="0"cellPadding="4"cellSpacing="0"class="bd"width="60"><TBODY><TR><TDalign="center"class="bg2"><Aclass="prs1"href="http://www.besttraining.cn/Courses/ShowCourse.aspx?id=139"target="_blank"><IMGborder="0"class="bd"src="Images/UNVA166X65_ok.gif"width="166"height="65"></A></TD></TR></TBODY></TABLE></DIV><SCRIPTevent="onload"for="window"language="JavaScript"><!--Beginpagestart();//End--></SCRIPT>
效果见:http://www.besttraining.cn
解决方案七:
这个分一定要给我啊。http://www.jz123.cn/ad.htm肯定又你的要的东西
解决方案八:
javascript
解决方案九:
divjavascript
解决方案十:
帮顶
解决方案十一:
<divid="dd"style="z-index:1;position:absolute;"><ahref="Microsoft.aspx"target="_blank"><imgsrc="images/漂浮GIF.gif"border="0"></a></div><tableclass="ling"></table><scriptlanguage="JavaScript">//新的//morejavascriptfromhttp://cfan.net.cndebugger;varxPos=20;//起始横向位置(从左算起,单位象素)varyPos=document.body.clientHeight;//页面本身高度//varyPos=1004;varstep=1;vardelay=30;//速度,值越大速度越慢varheight=0;varHoffset=0;varWoffset=0;varyon=0;varxon=0;varpause=true;varinterval;dd.style.top=yPos;functionchangePos(){try{width=document.body.clientWidth;//判断浏览器窗口的宽度//width=1024;height=document.body.clientHeight;//判断浏览器窗口的高度//height=768;Hoffset=dd.offsetHeight;Woffset=dd.offsetWidth;dd.style.left=xPos+document.body.scrollLeft;dd.style.top=yPos+document.body.scrollTop;if(yon){yPos=yPos+step;}else{yPos=yPos-step;}if(yPos<0){yon=1;yPos=0;}if(yPos>=(height-Hoffset)){yon=0;yPos=(height-Hoffset);}if(xon){xPos=xPos+step;}else{xPos=xPos-step;}if(xPos<0){xon=1;xPos=0;}if(xPos>=(width-Woffset)){xon=0;xPos=(width-Woffset);}}catch(e){}}functionstart(){dd.visibility="visible";interval=setInterval('changePos()',delay);}functionpause_resume(){if(pause){clearInterval(interval);pause=false;}else{iyyyyyyyyyy}}start();</script>
解决方案十二:
mark!