左侧漂浮广告代码(css漂浮广告代码)
1、先在你的网站主目录建立JS文件,再建立一个JS文件如ad01js打开文本将下面代码复制到其中,保存格式为js function initEcAd = 200 = #39visible#39 = 200。
2、JS代码实现对联式浮动广告演示!selfonError=nullcurrentX = currentY = 0whichIt = nulllastScrollX = 0 lastScrollY = 0NS = documentlayers ? 1 0IE = documentall ? 1 0function heartBeat ifIE diffY = diffX = document。
3、lt!放广告代码ltDIV onClick=quothideadquot style=quotFONTSIZE 9pt CURSOR handquot align=right关闭广告×ltDIV var x = 80,y = 80 var xin = true, yin = true var step = 1 var delay = 1 var obj=documentgetElementByIdquotadquotfunction floatAD var L=T=0。
4、var delta=015 var collectionfunction floaters thisitems = thisaddItem = functionid,x,y,content documentwrite#39ltDIV id=#39+id+#39 style=quotZINDEX 10 POSITION absolute width80px height60pxleft#39+typeofx==#39string#39?evalxx+#39top#39+typeof。
5、lt!head头部代码开始 var chip1var chip2var chip3根据使用的图片的多少增加或减少上面相应代码function pagestartcheckbrOKchip1=new Chipquotchip1quot,160,80chip2=new Chipquotchip2quot,60,80根据使用的图片的多少增加或减少上面的相应代码 ifbrOK movechipquot。
6、以下代码放在js文件中,在网页中引入这个js文件就可以了,图片自己换,位置可调 var online=new Arrayif !documentlayersdocumentwrite#39#39documentwrite#39#39documentwrite#39 #39documentwrite#39 #39documentwrite#39 #39documentwrite#39#39var verticalpos=quotfrombottom。
7、5漂浮广告代码QUOTE广告内容var xPos = 20var yPos = 10= xPos = yPosvar step = 1var delay = 30 var width,height,Hoffset,Woffsetvar y = 1var x = 1var intervalimgvisibility = quotvisiblequotfunction changePos width =。
8、漂浮广告 lt!链接地址 lt!图片地址 var x = 50,y = 60 var xin = true, yin = true var step = 1 var delay = 10 var obj=documentgetElementByIdquotcodefans_netquotfunction float var L=T=0 var R= objoffsetWidth var B。
9、最近项目里正好有类似需求 代码给出来供你研究下 需要jQuery支持 有什么疑问可以hi我 function function ajax url messagePath+#39messageBoxdo#39, dataType#39json#39,successfunctionjson alertjsonshowMessagesjson function showMessagesjson ifjson。
10、那种JS代码的话,一般放在最后面放在后面都行,其实放哪里都可以的,JS广告代码很自由,放后面容易改而已。
11、下面的代码可以放在之间,期间我加了一些注释就是“”后面的文字和“网页设计培训免费试用你还在等什么什么是浮动标识广告浮动广告顾名思义,这是一个在页面沿一定轨迹浮动的广告形式其特殊的表现形式与传统的形式相比更能聚集网络访客的眼球,使得广告的影响力更深三尺这种广告有着。
12、直接加在indexasp中就可以了 lt%set rs=servercreateobjectquotadodbrecordsetquotsql=quotselect * from 表名 where id=ID标号quotrsopen sql,conn,1,1 if not rseof then lta href=lt%=rsquot图片链接地址quot% target=quot_blankquotltimg src=quotlt%=rsquot图片地址quot%quot height=lt%=rsquot高度。
13、复制到下列代码到文本文件,然后重命名未为ad_duilianjs 然后在你的页面调用 代码如下var delta=0015var collectionvar closeB=falsefunction floaters thisitems = thisaddItem = functionid,x,y,content documentwrite#39ltDIV id=#39+id+#39 style=quotZINDEX 10 POSITIO。
14、你先把这个JS文件下下来js 演示效果就是上面的那个漂浮广告 至于调用代码,就是 你把里面的这个换成你自己的 另外你要修改js里的图片地址和连接地址,很容易的。
15、你要添加的广告代码如Google AdSense代码ltdiv 二在5d6d论坛所有页面底部添加广告代码 1系统设置基本设置基本设置网站备案信息代码 添加代码 ltscript type=quottextjavascriptquotifquotad_footerbanner1quot != nullad_footerbanner1。