首页 > 知识百科正文

网站常用对联广告代码

 2024-01-16  阅读 0

&<html&>
&<head&>
&<title&>网页特效|Linkweb.cn/Js|---对联广告&</title&>
&<meta http-equiv="Content-Type" content="text/html; charset=gb2312"&>
&</head&>
&<body&>
&<p align="center"&>
&<center&>
&<table border="1" width="776" height="3000" cellspacing="0" cellpadding="0"&>
&<tr&>
&<td width="100%" valign="top"&>&<p align="center"&>&<br&>&<br&>
页&<br&>面&<br&>区&<br&>域&</p&>&</td&>
&</tr&>
&</table&>
&</center&>
&</p&>
&<SCRIPT LANGUAGE="JavaScript"&>
&<!--
var showad = true;
var Toppx = 60;//上端位置
var AdpW = 100;//宽度
var AdpH = 360;//高度
var PageWidth = 800;//页面多少宽度象素下正好不出现左右滚动条
var MinScreenW = 1024;//显示广告的最小屏幕宽度象素

var ClosebuttonHtml = '&<p align="right"&>&<a href="javascript:;" onclick="hidead()"&>关闭&</a&>&</p&>'
var AdContentHtml = '&<p align="center"&>&<br&>&<br&>广&<br&>告&<br&>内&<br&>容&</p&>';
document.write ('&<p id="Javascript.Leftp"&>'+ClosebuttonHtml+'&<p&>'+AdContentHtml+'&</p&>&</p&>');
document.write ('&<p id="Javascript.Rightp"&>'+ClosebuttonHtml+'&<p&>'+AdContentHtml+'&</p&>&</p&>');
function scall(){
if(!showad){return;}
if (window.screen.width&<MinScreenW){
alert("临时提示:\n\n显示器分辨率宽度小于"+MinScreenW+",不显示广告");
showad = false;
document.getElementById("Javascript.Leftp").style.display="none";
document.getElementById("Javascript.Rightp").style.display="none";
return;
}
var Borderpx = ((window.screen.width-PageWidth)/2-AdpW)/2;

document.getElementById("Javascript.Leftp").style.display="";
document.getElementById("Javascript.Leftp").style.top=document.body.scrollTop+Toppx;
document.getElementById("Javascript.Leftp").style.left=document.body.scrollLeft+Borderpx;
document.getElementById("Javascript.Rightp").style.display="";
document.getElementById("Javascript.Rightp").style.top=document.body.scrollTop+Toppx;
document.getElementById("Javascript.Rightp").style.left=document.body.scrollLeft+document.body.clientWidth-document.getElementById("Javascript.Rightp").offsetWidth-Borderpx;
}

function hidead()
{
showad = false;
document.getElementById("Javascript.Leftp").style.display="none";
document.getElementById("Javascript.Rightp").style.display="none";
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;
//--&>
&</SCRIPT&>
&</body&>
&</html&>

本文链接:http://www.51sang.com/duilian/25922.html

版权声明:本文为 “对联网” 原创文章,转载请附上原文出处链接及本声明!

标签:
对联网
对联大全网专门分享经典对联知识,内容包括春联、对对联、春节对联、节日对联、 结婚对联、乔迁对联、挽联、行业对联、名胜古迹对联、对联横批等对联知识,为大家提供在线学习交流平台。
对联资讯
对联大全
对联知识
对联故事
谐趣对联
对联故事
copyright © 2023 对联大全 网站地图
京ICP备13028492号