网页中间弹窗广告代码(页面弹窗广告)
admin 发布:2022-12-19 19:31 167
今天给各位分享网页中间弹窗广告代码的知识,其中也会对页面弹窗广告进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
在PHP页面中怎样添加弹出广告代码是什么??
PHP网页打开自动弹出广告,五秒后自动关闭的网页代码如下:
新建网页写入代码即可
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""
html xmlns=""
head
title网页弹出广告窗口 boaer.com/title
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
style type="text/css"
body,html{margin:0;padding:0;font-size:12px;font-family:Arial;font:12px/1 Helvetica, Tahoma, Arial, \5b8b\4f53, sans-serif;}
.fixedMask{position:fixed; display:none;top:0; left:0; z-index:999; width:100%; height:100%; background:#000; filter:alpha(opacity=30); opacity:0.3; }
* html { background:url(*) fixed; }
* html body { margin:0; height:100%; }
* html .fixedMask{ position: absolute; left: expression(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth); top: expression(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight); }
#ad{width:570px;height:345px;border:1px solid #333;border-top-width:5px;position:absolute;z-index:9999;left:50%;margin-left:-290px;top:50%;margin-top:-175px;display:none;}
#ad a{display:block;position:absolute;text-decoration:none;right:0;top:0px;font: 12px/1.5 arial;background:#B50000;padding:2px 5px;color:#fff;}
#ad a:hover{background:red;}
/style
/head
body
iframe scrolling="no" src="" style="width:100%;height:1000px"/iframe
div id="ad"
a href="#1" 关闭/a
img src="" alt="" /
/div
/body
script type="text/javascript"
//![CDATA[
alert('5秒后自动关掉!');
function Mask() {
if (Mask.instance) return Mask.instance;
this.el = document.body.appendChild(document.createElement('DIV'));
this.el.className = 'fixedMask';
Mask.instance = this;
};
Mask.prototype = {
show: function(fn) {
this.el.style.display = 'block';
fnfn();
},
hide: function(fn) {
this.el.style.display = 'none';
fnfn()
}
};
var x=new Mask();
var AD=document.getElementById('ad');
AD.getElementsByTagName('A')[0].onclick=hide;
x.show(function (){
AD.style.display='block';
});
setTimeout(hide,5000);
function hide(){
x.hide(function (){
AD.style.display='none';
})
}
//]]
/script
/html
弹出窗口的html的代码是怎么写的?
1、最基本的弹出窗口代码
SCRIPT LANGUAGE="javascript"
!--
window.open ("page.html")
--
/SCRIPT
window.open ("page.html") 用于控制弹出新的窗口page.html,如果page.html不与主窗口在同一路径下,前面应写明路径,绝对路径(http://)和相对路径(../)均可。
2、经过设置后的弹出窗口
SCRIPT LANGUAGE="javascript"
!--
window.open ("page.html", "newwindow", "height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no")nbsp;
-
/SCRIPT
SCRIPT LANGUAGE="javascript" js脚本开始;window.open 弹出新窗口的命令;"page.html" 弹出窗口的文件名;"newwindow" 弹出窗口的名字(不是文件名),非必须,可用空"代替;
3、用函数控制弹出窗口
script LANGUAGE="JavaScript"
!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
}
--
/script
这里定义了一个函数openwin(),函数内容就是打开一个窗口。
4、同时弹出2个窗口
script LANGUAGE="JavaScript"
!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=100, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
nbsp;
window.open ("page2.html", "newwindow2", "height=100, width=100, top=100, left=100,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
}
--
/script
为避免弹出的2个窗口覆盖,用top和left控制一下弹出的位置不要相互覆盖即可。
5、主窗口打开文件1.htm,同时弹出小窗口page.html
script language="javascript"
!--
function openwin() {
window.open("page.html","","width=200,height=200")
}
--
/script
弹窗代码是什么
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""
html xmlns=""
head
meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
title弹窗代码_网页弹窗代码_点击弹窗代码_网站弹出窗口代码生成 - 多事通/title
meta name="keywords" content="弹窗代码,网页弹窗代码,点击弹窗代码,弹出窗口代码 " /
meta name="description" content="网页弹窗代码生成为您提供弹窗代码,网页弹窗代码,点击弹窗代码,弹出窗口代码,弹窗广告代码,js弹窗代码,html弹窗代码,强制弹窗代码,asp弹窗代码,右下角弹窗代码。" /
link rel="shortcut icon" href="" /
link href="" rel="stylesheet" type="text/css" /
link href="" rel="stylesheet" type="text/css" /
这是弹窗的源码,你可以看一下
网页弹窗代码
head
titlexxxxx/title
meta http-equiv="content-type" content="text/html; charset=gb2312" /
link href="css/css.css" rel="stylesheet" type="text/css" /
/head
body
script type="text/javascript" src=""/script
style
.tan{height:300px; background:url() no-repeat center;display:none;}
/style
script type="text/javascript"
window.onload=function(){setTimeout('dakai()',3000);} //打开页面后2秒显示出DIV
function dakai(){$(".tan").slideDown("slow");setTimeout('guanbi()',5000);}//显示出DIV后8秒关闭
function guanbi(){$(".tan").slideUp("slow");}
/script
style type="text/css"
#MyMoveAd {
text-align: center;
height: 0px;
background-color: #AC010A;
background-image: url(ad.jpg);
background-repeat: no-repeat;
background-position: center center;
display: block;
}
/style
/script
/body
关于网页中间弹窗广告代码和页面弹窗广告的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;
- 上一篇:网页在线咨询模块代码(咨询网站源码)
- 下一篇:包含伺服系统源代码转让的词条
相关推荐
- 04-26udp组播发送端代码(udp协议支持广播和组播)[20240426更新]
- 04-26第三方客服系统代码(第三方在线客服代码)[20240426更新]
- 04-26html愚人节整人代码(愚人节整人方法信息)[20240426更新]
- 04-26按键精灵键盘按键代码(按键精灵enter按键码)[20240426更新]
- 04-26html5调用代码(html5常用)[20240426更新]
- 04-26网页内部源代码(网页内部源代码怎么用)[20240426更新]
- 04-26js日期代码(js 日期函数)[20240426更新]
- 04-26php网页验证码代码(PHP验证)[20240426更新]
- 04-26打砖块游戏代码(打砖块游戏代码大全)[20240426更新]
- 04-26jquery瀑布流布局代码(html瀑布流布局)[20240426更新]
取消回复欢迎 你 发表评论:
- 标签列表
- 最近发表
- 友情链接