网站js广告代码大全(html广告代码)
admin 发布:2022-12-19 14:53 88
今天给各位分享网站js广告代码大全的知识,其中也会对html广告代码进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
- 1、JS轮播弹窗代码
- 2、js幻灯片广告切换代码
- 3、JS弹窗代码
- 4、在线等,寻找中英文版本的网页模板带后台.高分....
- 5、求js固定在顶部的悬浮广告代码 带关闭按钮的 希望代码能够详细一点 谢谢
JS轮播弹窗代码
//时间控制的广告代码
var cookie = {
ad0:30,//时间控制第一个广告30分钟轮播
ad1:60,//时间控制第二个广告60分钟轮播
ad_num : 2,
get_cookie : function(Name){var search = Name + "="; var returnvalue = "";if (document.cookie.length 0) {offset = document.cookie.indexOf(search);if (offset != -1) {offset += search.length;end = document.cookie.indexOf(";", offset);if (end == -1)end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end));}}return returnvalue;},
init : function(){
for(var i=0; icookie.ad_num; i++){
if(cookie.get_cookie('ppad_cookie_'+i)){
continue;
}else{
var Then = new Date();current_time = eval('cookie.ad'+i);Then.setTime(Then.getTime() + current_time*60*1000);document.cookie='ppad_cookie_'+i+'=1;expires='+ Then.toGMTString()+';path=/;';
switch(i){
case 0:
广告代码一 break;
case 1:
广告代码二 break;
}
break;
}
}
}
}
cookie.init();
//直接就放JS文件里面
js幻灯片广告切换代码
js幻灯片广告切换代码如下操作。
1、下载到的压缩包,上传到网站根目录下。
2、解压出来,复制index.html里面的主要代码,插入到网站项目想要放置的位置。
3、对插入的代码,根据自己需求对文字以及图片做适当的修改和替换,即可投入到自己网站中使用以及呈现。
JS弹窗代码
弹窗代码js怎么改能弹出多个页面代码如下: //至强弹窗代码//容错脚本functionblockError(){returntrue;}//当脚本出错时返回真window.onerror=blockError;if(window.SymRealWinOpen){window.open=SymRealWinOpen;}if(window.NS_ActualOpen){window.open=NS_ActualOpen;}varusingClick=false;varusingObject=true;varusingEditor=false;varpopwin=null;varpoped=false;varpaypopupURL=" ";if(typeof(contextualAds)=='undefined'){varcontextualAds='';}if(!document.getElementById('paypopupScriptDiv')){document.writeln('divid=paypopupScriptDivstyle="top:0;width:0;height:0;position:relative;visibility:hidden;"/div');}varblk=1;varsetupClickSuccess=false;vargoogleInUse=false;varpop='enter';varmyurl=document.location.protocol "//" document.location.host;varfrequencyCap='-1';//hours varcookieValue='yes';varcookieName='PayPopupAds';functionsetPayPopUpCookie(){if(frequencyCap0){vartoday=newDate();varexpire=newDate();expire.setTime(today.getTime() 3600000*frequencyCap);document.cookie=cookieName "=" escape(cookieValue) ";expires=" expire.toGMTString() ";path=/";}elseif(frequencyCap==0){document.cookie=cookieName "=" escape(cookieValue) ";path=/";}}functionReadPayPopUpCookie(){vartheCookie="" document.cookie;varind=theCookie.indexOf(cookieName);if(ind==-1||cookieName=="")return"";varind1=theCookie.indexOf(';',ind);if(ind1==-1)ind1=theCookie.length;returnunescape(theCookie.substring(ind cookieName.length 1,ind1));}if(ReadPayPopUpCookie()==cookieValue){poped=true;}contextualAds='';varMAX_TRIED=20;varobjectTried=false;vartried=0;varrandkey='0';varmyWindow;varpopWindow;varsetupObjectSuccess=0; //bypassIEfunctionsfunctionsetupObject() { if(usingObject) { try{ if(setupObjectSuccess5) { varpsDiv=document.getElementById('paypopupScriptDiv'); if(psDiv) { psDiv.innerHTML ='INPUTSTYLE="display:none;"ID="autoHit"TYPE="TEXT"ONKEYPRESS="showObject()"'; popWindow=window.createPopup(); popWindow.document.body.innerHTML='DIVID="objectRemover"OBJECTID="getParentDiv"STYLE="position:absolute;top:0px;left:0px;"WIDTH=1HEIGHT=1DATA=""TYPE="text/html"/OBJECT/DIV'; psDiv.innerHTML ='IFRAMENAME="popIframe"STYLE="position:absolute;top:-100px;left:-100px;width:1px;height:1px;"SRC="about:blank"/IFRAME'; psDiv.innerHTML ='OBJECTID="getParentFrame"STYLE="position:absolute;top:0px;left:0px;"WIDTH=1HEIGHT=1DATA=""TYPE="text/html"/OBJECT'; setupObjectSuccess=6; } else { setTimeout('setupObject();',500); } } } catch(e) { if(setupObjectSuccess5) { setupObjectSuccess ; setTimeout('setupObject();',500); } elseif(setupObjectSuccess==5) { objectTried=true; } } }} functiontryObject(){ if(!objectTried
在线等,寻找中英文版本的网页模板带后台.高分....
看下这个可以不,如果可以加分。希望我的回答能让您满意并予以采纳,感谢您的提问,祝您愉快!
求js固定在顶部的悬浮广告代码 带关闭按钮的 希望代码能够详细一点 谢谢
div style="width:100%;height:100px;position:fixed;"
button onclick="this.parentNode.parentNode.removeChild(this.parentNode)"关闭/button
/div
关于网站js广告代码大全和html广告代码的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;
相关推荐
- 05-13网络推广教程,网络推广技巧大全
- 05-13比较有名的个人网站,个人网站取名大全
- 05-13给企业做网站的公司,给企业做网站的公司有哪些
- 05-13怎么搭建网站,怎么搭建网站教程
- 05-13优化网站佛山厂商,佛山网站优化步骤
- 05-13网站权重什么意思,网站权重数值越大说明什么
- 05-12网站安全检测工具网站,网站安全测试工具
- 05-12网站自然优化,网站自动优化系统
- 05-12网站是怎么建立起来的,网站是怎么建立起来的视频
- 05-12优秀软文营销范文,优秀软文营销范文大全
取消回复欢迎 你 发表评论:
- 标签列表
- 最近发表
- 友情链接