&<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
版权声明:本文为 “对联网” 原创文章,转载请附上原文出处链接及本声明!
工作时间:
客服电话
电子邮件
909091757#qq.com