标准网页两侧浮动广告代码,支持FF及IE

标准网页两侧浮动广告代码,支持FF及IE点击这里使用RSS订阅本Blog:网页两侧浮动广告代码经测试支持IE、Firefox等浏览器符合标准的正常工作的对联广告lastScrollY=0;functionheartBeat(){vardiffY;if(doc

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
点击这里使用RSS订阅本Blog: rel=”alternate” href=”http://feed.feedsky.com/softwave” type=”application/rss+xml” title=”RSS 2.0″ /> <script language=”javascript”> </script> <script language=”javascript” src=”http://www.feedsky.com/jsout/publishlist_v2.js?burl=softwave&out_html=true”></script> 网页两侧浮动广告代码 经测试支持IE、Firefox等浏览器

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>符合标准的正常工作的对联广告</title>
<script language=”JavaScript” type=”text/javascript”>
lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}
  
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById(“lovexin12”).style.top=parseInt(document.getElementById(“lovexin12″).style.top)+percent+”px”;
document.getElementById(“lovexin14”).style.top=parseInt(document.getElementById(“lovexin12″).style.top)+percent+”px”;
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12=”<div id=/”lovexin12/” style=’left:2px;position:absolute;top:120px;’>ad1</div>”
suspendcode14=”<div id=/”lovexin14/” style=’right:2px;position:absolute;top:120px;’>ad2</div>”
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval(“heartBeat()”,1);
</script>
<style type=”text/css”>
<!–
html,body{height:1000px;}
#lovexin12,#lovexin14{width:120px; height:250px; background-color:#e5e5e5; border:1px solid #ddd;}
#mm{height:1000px;}
–>
</style>
</head>
<body>
<div id=”mm”>
</div>
</body>
</html>

摘自【http://bbs.blueidea.com/thread-2865874-1-1.html】

<script type=”text/javascript” src=”http://www.google.com/reader/ui/publisher.js”></script> <script type=”text/javascript” src=”http://www.google.com/reader/public/javascript/user/00697638153916680411/state/com.google/broadcast?n=5&callback=GRC_p(%7Bc%3A%22green%22%2Ct%3A%22%5Cu8FD9%5Cu4E9B%5Cu6587%5Cu7AE0%5Cu4E5F%5Cu503C%5Cu5F97%5Cu4E00%5Cu770B%22%2Cs%3A%22false%22%7D)%3Bnew%20GRC”></script>

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/191436.html原文链接:https://javaforall.net

(0)
上一篇 2026年2月1日 上午11:15
下一篇 2026年2月1日 上午11:43


相关推荐

  • java四舍五入函数的用法

    java四舍五入函数的用法java中使用内置函数实现四舍五入,java中四舍五入函数讲解…

    2022年5月21日
    53
  • PIC 指令周期_三菱plc分钟计时指令

    PIC 指令周期_三菱plc分钟计时指令一、PIC指令周期计算:设工作频率为:F(MHz);1个指令周期为1/(F/4)秒。二、PIC的指令 即汇编指令,不同系列指令数不一样。  8位单片机共有三个级别,有相对应的指令集。基本级PIC系列芯片共有指令33条,每条指令是12位字长;中级PIC系列芯片共有指令35条,每条指令是14位字长;高级PIC系列芯片共有指令58条,每条指令是16位字长。其指令向下兼容

    2022年10月9日
    5
  • python numpy.zeros()函数的用法

    python numpy.zeros()函数的用法numpy zeros shape dtype float order C 返回给定形状和类型的新数组 用 0 填充 参数 shape int 或 int 的元组 nbsp 新阵列的形状 例如 2 3 或 2 nbsp dtype 数据类型 可选 nbsp 数组的所需数据类型 例如 numpy int8 默认是 numpy float64 nbsp

    2026年3月17日
    2
  • 域渗透之NTLM Relay

    域渗透之NTLMRelay基础知识LLMNR概述链路本地多播名称解析(LLMNR)是一个基于协议的域名系统(DNS)数据包的格式,使得双方的IPv4和IPv6的主机来执行名称解析为同一本地链路

    2021年12月13日
    73
  • form表单元素

    form表单元素nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp form 表单元素 1 form 表单元素 常见的表单元素有输入框 单选框 复选框 文本域 密码框等 2 其基本样式为 lt input nbsp type 类型 name 名字 gt 3 input 为输入框 其因 type 不同而类型不同 4 type 类型 1 checkbox 多选框 2 radio 单行单选框 3 text 文本

    2026年3月18日
    2
  • java中使用uuid函数_uuid主键

    java中使用uuid函数_uuid主键UUID介绍:UUID(UniversallyUniqueIdentifier)全局唯一标识符,是指在一台机器上生成的数字,它保证对在同一时空中的所有机器都是唯一的。按照开放软件基金会(OSF)制定的标准计算,用到了以太网卡地址、纳秒级时间、芯片ID码和许多可能的数字。由以下几部分的组合:当前日期和时间(UUID的第一个部分与时间有关,如果你在生成一个UUID之后,过几秒又生成一个UUID,则…

    2026年2月18日
    5

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号