漂浮***
1、首先,您可以先写好产品简介;2、把您需要漂浮的图片上传到服务器,并且记下漂浮图片地址;3、写好产品简介后,选择编辑器上方的“Html源”,在“Html源”状态下在产品简介的***后加入以下背景漂浮代码:<divid=ddstyle="Z-INDEX:1;WIDTH:100px;POSITION:absolute;HEIGHT:130px"><ahref="http://ina-"target=_blank><imgsrc="http://ina-/files/200704/product/1/g"border="0"></a></div><scriptlanguage=J***aScript><!--Begin//morej***ascriptvarxPos=20;varyPos=dy.clientHeight;varstep=1;vardelay=30;varheight=0;varHoffset=0;varWoffset=0;varyon=0;varxon=0;varpause=true;varinterval;dd.=yPos;functionchangePos(){width=dy.clientWidth;height=dy.clientHeight;Hoffset=dd.offsetHeight;Woffset=dd.offsetWidth;dd.style.left=xPos+dy.scrollLeft;dd.=yPos+dy.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);}}functionstart(){dd.visibility="visible";interval=setInterval("changePos()",delay);}functionpause_resume(){if(pause){clearInterval(interval);pause=false;}else{interval=setInterval("changePos()",delay);pause=true;}}start();//End--></script>其中是您图片的地址。http://ina-是链接地址;http://ina-/files/200704/product/1/g是图片地址。把上面的地址修改成为您的图片以及链接地址就可以了。4、加入图片代码后,您取消“Html源”编辑状态(取消那个勾),这一步很重要,否则保存不成功哦。5、然后点击“确定”就可以了。预览一下吧,看看图片是不是漂浮起来了呢?=(height-Hoffset)){yon=0;yPos=(height-Hoffset);}if(xon){xPos=xPos+step;}else{xPos=xPos-step;}if(xPos=(width-Woffset)){xon=0;xPos=(width-Woffset);}}functionstart(){dd.visibility=visible;interval=setInterval(changePos(),delay);}functionpause_resume(){if(pause){clearInterval(interval);pause=false;}else{interval=setInterval(changePos(),delay);pause=true;}}start();//End-->)
企业自助建站|会打字就能建网站
业务 QQ: