视频1
视频21
视频41
视频61
视频文章1
视频文章21
视频文章41
视频文章61
推荐1
推荐3
推荐5
推荐7
推荐9
推荐11
推荐13
推荐15
推荐17
推荐19
推荐21
推荐23
推荐25
推荐27
推荐29
推荐31
推荐33
推荐35
推荐37
推荐39
推荐41
推荐43
推荐45
推荐47
推荐49
关键词1
关键词101
关键词201
关键词301
关键词401
关键词501
关键词601
关键词701
关键词801
关键词901
关键词1001
关键词1101
关键词1201
关键词1301
关键词1401
关键词1501
关键词1601
关键词1701
关键词1801
关键词1901
视频扩展1
视频扩展6
视频扩展11
视频扩展16
文章1
文章201
文章401
文章601
文章801
文章1001
资讯1
资讯501
资讯1001
资讯1501
标签1
标签501
标签1001
关键词1
关键词501
关键词1001
关键词1501
专题2001
全部频道
首页
科技
教育
生活
旅游
时尚
美容
美食
健康
体育
游戏
汽车
元宇宙
家电
财经
综合
宠物
仿CSDN右下角悬挂的浮动层效果_广告代码
2020-11-27 20:40:52
责编:小采
点击下载本文
文档为doc格式
ads
CSDN右下角悬挂效果
微软启动最严厉反盗版验证
Mozilla建开发者工具实验室
Google Apps安全漏洞揭秘
微软发布Silverlight2
WinHEC邀您一起揭开Window
微软与您畅享[奇迹之
汽车信息化机遇与挑战
计算机程序的行为学
思考能力从哪里来
避免肥胖十五条法则
清明节第一次相亲
不要爱上论坛女人
IBM
var data = { 'bs' : 'http://www.test.com', 'as': 'http://localhost/adsformat/', 'ad' :[['2','images/2007032256654.jpg', 'rd?go=eJxNjk1rwz']] }; function msgBox() { this.container = "ads_14"; this.dragArea = "drag"; this.width = 282; this.height = 235; this.smallHeight = 27; this.smallId = "small"; this.closeId = "close"; this.area = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body; this.space = 15; this.timer; this.timeOut = 150; this.smalled = false; window.msgBoxListener = this; this.$(this.smallId).onclick= function(){msgBoxListener.toSmall()}; this.$(this.closeId).onclick = function(){msgBoxListener.close()}; } msgBox.prototype.flow = function() { this.$(this.container).style.position = "absolute"; this.$(this.container).style.zIndex = "1000"; if(this.smalled) { this.$(this.container).style.top = this.area.scrollTop + this.area.clientHeight - this.smallHeight - this.space + "px"; }else{ this.$(this.container).style.top = this.area.scrollTop + this.area.clientHeight - this.height - this.space + "px"; } this.$(this.container).style.left = this.area.scrollLeft + this.area.clientWidth - this.width - this.space + "px"; } msgBox.prototype.toSmall = function() { if(this.smalled) { this.$(this.smallId).src = "https://www.gxlcms.com/images/skin/small.gif"; this.$(this.container).style.marginTop = -this.height + "px"; this.$(this.container).style.height = this.height + "px"; this.$(this.container).style.overflow = "hidden"; this.smalled = false; this.flow(); this.$(this.container).style.marginTop = "0px"; }else{ this.$(this.smallId).src = "images/skin/big.gif"; this.$(this.container).style.height = this.smallHeight + "px"; this.$(this.container).style.overflow = "hidden"; this.smalled = true; this.flow(); } } msgBox.prototype.close = function() { document.body.removeChild(this.$(this.container)); } msgBox.prototype.auto = function() { this.flow(); window["onresize"]=function(){msgBoxListener.flow();}; window["onscroll"]=function(){msgBoxListener.flow();}; document.onmousedown = function(){clearInterval(msgBoxListener.timer);msgBoxListener.drag(msgBoxListener.container, msgBoxListener.dragArea);}; } msgBox.prototype.drag = function(container, drag) { var IMOUSEDOWN = true; var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; container = document.getElementById(container); drag = document.getElementById(drag); if(drag) { try{ if(IMOUSEDOWN){ drag.onmousedown=function(a){ var d=document; if(!a)a=window.event; drag.style.cursor="move"; var x=a.layerX?a.layerX:a.offsetX,y=a.layerY?a.layerY:a.offsetY; if(drag.setCapture) drag.setCapture(); else if(window.captureEvents) window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP); d.onmousemove=function(a){ if(!a)a=window.event; if(!a.pageX)a.pageX = (a.clientX<0 ?0:a.clientX); if(!a.pageY)a.pageY = (a.clientY <0 ?0:a.clientY); var tx = a.pageX-x, ty = a.pageY-y; if(isIE){ ty = ty + document.documentElement.scrollTop - document.documentElement.clientTop; } container.style.position = "absolute"; container.style.left = tx+"px"; container.style.top = ty+"px"; }; d.onmouseup=function(){ if(drag.releaseCapture) drag.releaseCapture(); else if(window.captureEvents) window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP); d.onmousemove=null; d.onmouseup=null; }; }; }else{ container.style.cursor="pointer"; drag.style.cursor="move"; } }catch(e){ alert(e); } } } msgBox.prototype.$ = function(ele) { return document.getElementById(ele); } var msgBox1 = new msgBox(); msgBox1.auto(); script>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
下载本文
显示全文
专题
动视 51dongshi.net 版权所有
Copyright © 2019-2025