左下角悬浮广告代码_右下角浮动广告代码

左下角悬浮广告代码_右下角浮动广告代码<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head>..

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

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

<!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=utf-8″ />

<title>右下角广告代码-web前端开发</title>

<script type=”text/javascript”>

window.onload = getMsg;

window.onresize = resizeDiv;

window.onerror = function(){}

function $(id) {return document.getElementById(id);}

//短信提示使用(asilas添加)

var divT,divL,divW,divH,docH,docW,docST,docSL,objTimer,i = 0;

function getMsg()

{

try{

divT = parseInt($(“eMeng”).style.top,10); //层top位置

divL = parseInt($(“eMeng”).style.left,10); //层left位置

divH = parseInt($(“eMeng”).offsetHeight,10);//层宽

divW = parseInt($(“eMeng”).offsetWidth,10);//层高

docW = document.documentElement.clientWidth;//窗口宽

docH = document.documentElement.clientHeight;//窗口高

docST=document.documentElement.scrollTop;

docSL=document.documentElement.scrollLeft;

$(“eMeng”).style.top = parseInt(docST,10) + docH + 10+”px”;

$(“eMeng”).style.left = parseInt(docSL,10) + docW – divW+”px”;

$(“eMeng”).style.visibility=”visible”;

objTimer = setInterval(“moveDiv()”,10);

}

catch(e){}

}

function resizeDiv()

{

try{

divH = parseInt($(“eMeng”).offsetHeight,10);

divW = parseInt($(“eMeng”).offsetWidth,10);

docW = document.documentElement.clientWidth;

docH = document.documentElement.clientHeight;

$(“eMeng”).style.top = docH – divH + parseInt(document.documentElement.scrollTop,10)+”px”;

$(“eMeng”).style.left = docW – divW + parseInt(document.documentElement.scrollLeft,10)+”px”;

}

catch(e){}

}

function moveDiv()

{

try{

if(parseInt($(“eMeng”).style.top,10) <= (docH – divH + parseInt(document.documentElement.scrollTop,10)))

{

window.clearInterval(objTimer)

objTimer = setInterval(“resizeDiv()”,1)

}

divT = parseInt($(“eMeng”).style.top,10);

$(“eMeng”).style.top = divT – 1+”px”;

}

catch(e){}

}

function closeDiv()

{

$(‘eMeng’).style.visibility=’hidden’;

if(objTimer) window.clearInterval(objTimer)

}

</script>

<div id=”eMeng” style=”z-index: 99999; visibility:hidden; left: 0px; width: 252px; position: absolute; top: 0px; height: 213px; background:url(http://image.5fad.com/5/img/ad_bg.gif)”>

<div style=” height:28px”>

<div style=” width:20px; height:20px; float:right; margin:5px 5px 0 0; cursor:pointer” οnclick=”closeDiv()”></div>

</div>

<div style=”width:225px; height:164px; margin:0 auto;”><a href=”http://5.5fad.com/star/pur_detial.aspx?news=138″ target=”_blank”><img src=”http://image.5fad.com/5/ad/ad01.jpg” width=”225″ height=”164″ border=”0″ /></a></div>

</div>

</body>

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

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

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • MySQL使用全文索引(fulltext index)

    MySQL使用全文索引(fulltext index)1.创建全文索引(FullTextindex)    旧版的MySQL的全文索引只能用在MyISAM表格的char、varchar和text的字段上。     不过新版的MySQL5.6.24上InnoDB引擎也加入了全文索引,所以具体信息要随时关注官网,   1.1.创建表的同时创建全文索引       CREATETABLEa

    2022年10月24日
    0
  • 如何给网站添加CNZZ站长统计功能代码的常用办法

    如何给网站添加CNZZ站长统计功能代码的常用办法

    2021年9月19日
    97
  • 虚拟存储管理技术概念_虚拟内存管理

    虚拟存储管理技术概念_虚拟内存管理页内虚拟存储器页的大小是固定的段式虚拟存储器段的大小不固定段页式虚拟存储器把程序按逻辑结构分段,每段再划分为固定大小的页,主存空间也划分为大小相等的页,程序对主存的调入、调出仍以页为基本传送单位。每个程序对应一个段表,每段对应一个页表。虚拟地址:段号+段内页号+页内地址…

    2022年9月26日
    0
  • systick的使用方法_cleardevice函数

    systick的使用方法_cleardevice函数systick的原理前一篇博文有介绍,简而言之就是SysTick定时器是一个24位的倒计数,当倒计数为0时,将从RELOAD寄存器中取值作为定时器的初始值,同时可以选择在这个时候产生中断(异常号:15

    2022年8月6日
    3
  • show java吧_求助【java吧】_百度贴吧

    show java吧_求助【java吧】_百度贴吧该楼层疑似违规已被系统折叠隐藏此楼查看此楼packageworker2;importjava.io.BufferedReader;importjava.io.BufferedWriter;importjava.io.FileInputStream;importjava.io.FileNotFoundException;importjava.io.FileOutputStream;im…

    2022年7月7日
    25
  • socketpair函数_socket框架

    socketpair函数_socket框架socketpair函数概要如下:#include 定义一些C宏常量#include 定义socketpair函数原型intsocketpair(intdomain,inttype,intprotocol,intsv[2]);socketpair函数需要四个参数:domain-套接口的域type-套接口类型protocol-使用的协议sv[2

    2022年10月14日
    1

发表回复

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

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