侧广告条
来源:互联网 发布:java导出xlsx 编辑:程序博客网 时间:2024/05/01 08:23
<SCRIPT language=javascript type=text/javascript>
<!--对联代码开始-->
//<![CDATA[
var adLeftSrc = "uploadfile/2007123091038.jpg" //图片地址
var adLeftHref = "http://www.sina.com"
var adLeftWidth = "100"
var adLeftHeight = "250"
var adRightSrc = "uploadfile/2007123091038.jpg"//图片地址
var adRightHref = "http://www.baidu.com"
var adRightWidth = "100"
var adRightHeight = "250"
var marginTop = "300" //在这里更改距离浏览器底端的高度
var marginLeft = "-2"//在这里更改距离浏览器右端的高度
var navUserAgent = navigator.userAgent
function load(){
judge();
move();
}
function move() {
judge();
setTimeout("move();",80)
}
function judge(){
if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != "") {
document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
else{
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != "") {
document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';}
}
if (adLeftSrc != "") {
document.write("<div id=/"adLeftFloat/" style=/"position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;/"><img src=/"uploadfile/close.gif/" width=/"18/" border=/"0/" height=/"17/" onMousedown=/"javascript:close_float_left();void(0);/";>");
document.write("<div id=/"Float/" style=/"width:" + adLeftWidth + ";/"><a href=/"" + adLeftHref +"/" target=_blank><img src=/"" + adLeftSrc + "/" width=/"" + adLeftWidth + "/" height=/"" + adLeftHeight + "/" border=/"0/" /></a></div>");
document.write("</div>");
//<![CDATA[
var adLeftSrc = "uploadfile/2007123091038.jpg" //图片地址
var adLeftHref = "http://www.sina.com"
var adLeftWidth = "100"
var adLeftHeight = "250"
var adRightSrc = "uploadfile/2007123091038.jpg"//图片地址
var adRightHref = "http://www.baidu.com"
var adRightWidth = "100"
var adRightHeight = "250"
var marginTop = "300" //在这里更改距离浏览器底端的高度
var marginLeft = "-2"//在这里更改距离浏览器右端的高度
var navUserAgent = navigator.userAgent
function load(){
judge();
move();
}
function move() {
judge();
setTimeout("move();",80)
}
function judge(){
if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != "") {
document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
else{
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != "") {
document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';}
}
if (adLeftSrc != "") {
document.write("<div id=/"adLeftFloat/" style=/"position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;/"><img src=/"uploadfile/close.gif/" width=/"18/" border=/"0/" height=/"17/" onMousedown=/"javascript:close_float_left();void(0);/";>");
document.write("<div id=/"Float/" style=/"width:" + adLeftWidth + ";/"><a href=/"" + adLeftHref +"/" target=_blank><img src=/"" + adLeftSrc + "/" width=/"" + adLeftWidth + "/" height=/"" + adLeftHeight + "/" border=/"0/" /></a></div>");
document.write("</div>");
}
if (adRightSrc != "") {
document.write("<div id=/"adRightFloat/" style=/"position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;/"><img src=/"uploadfile/close.gif/" width=/"18/" border=/"0/" height=/"17/" onMousedown=/"javascript:close_float_right();void(0);/";>");
document.write("<div id=/"Float/" style=/"width:" + adRightWidth + ";/"><a href=/"" + adRightHref +"/" target=_blank><img src=/"" + adRightSrc + "/" width=/"" + adLeftWidth + "/" height=/"" + adRightHeight + "/" border=/"0/" /></a></div>");
document.write("</div>");
}
load();
if (adRightSrc != "") {
document.write("<div id=/"adRightFloat/" style=/"position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;/"><img src=/"uploadfile/close.gif/" width=/"18/" border=/"0/" height=/"17/" onMousedown=/"javascript:close_float_right();void(0);/";>");
document.write("<div id=/"Float/" style=/"width:" + adRightWidth + ";/"><a href=/"" + adRightHref +"/" target=_blank><img src=/"" + adRightSrc + "/" width=/"" + adLeftWidth + "/" height=/"" + adRightHeight + "/" border=/"0/" /></a></div>");
document.write("</div>");
}
load();
function close_float_right(){
document.getElementById("adRightFloat").style.display="none";}
function close_float_left(){
document.getElementById("adLeftFloat").style.display="none";} //]]>
document.getElementById("adRightFloat").style.display="none";}
function close_float_left(){
document.getElementById("adLeftFloat").style.display="none";} //]]>
</SCRIPT>
<body>
<table height="2000"><tr><td></td></tr></table>
</body>
<body>
<table height="2000"><tr><td></td></tr></table>
</body>
转自:http://hi.baidu.com/flyrain88/blog/item/81b6ff4a315bd12708f7effd.html
- 侧广告条
- 广告条
- 广告墙、推送广告、广告条
- 去除 Messenge 广告条
- google 广告条代码
- 智能 App 广告条
- Android------广告条
- 11、广告条 ViewPage
- 安卓版广告条,轮播图
- 自定义广告Banner条
- 新闻条、广告条滚动效果
- 滚动广告条的制作
- 摩库广告条项目
- cocos2d-x 添加广告条
- 广告条文字翻滚效果
- Cocos2d-X 添加广告条
- 自定义的广告条(ViewPager)
- 自定义View----Banner广告条
- js技巧收集(200多个)
- Leopard市场占有率击败Vista
- Google正式发布网页版Google Earth SKY
- Windows XP SP3 最新Beta版改进概览
- 尝试从 Web 项目中访问网络文件时服务器返回的常见错误的列表
- 侧广告条
- 电脑市场Ghost XP SP2装机版v3.0
- 电脑市场Ghost XP SP2纯净版v3.0
- 倡导一种务实型的管理软件消费习惯
- C#范型入门
- Hibernate 关联查询
- 快速启动栏的"显示桌面"图标被误删
- 在局域网中隐藏自己
- #ifndef#define#endif的用法(转载)