右下角弹出广告代码(页面右下角弹出广告)

更新时间:2023-03-01 04:21:58 阅读: 评论:0

求一个右下角的漂浮广告代码?

右下角漂浮广告代码使用方法(一): 将以下代码以**.js文件形式保存,在模板中调用这个js文件即可
(备注该代码的图片大小为250*150 代码里面有参数自己看下就知道了)document.writeln("<div id=\"qqaddiv\" style=\"position:absolute; z-index: 100;\"> ");
document.writeln("<a href=链接地址 target=_blank><img src=图片链接地址 border=0></a>");
document.writeln("</div>");
var bodyfrm = ( document.compatMode.toLowerCa()=="css1compat" ) ? document.documentElement : document.body;
var adst = document.getElementById("qqaddiv").style;
adst.top = ( bodyfrm.clientHeight - 150 ) + "px";
adst.left = ( bodyfrm.clientWidth - 250 ) + "px";
function moveR() {
adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 150 ) + "px";
adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 250 ) + "px";
}
tInterval("moveR();", 80); 右下角漂浮广告代码使用方法(二): var qq_etewidth = 259;
var qq_eteheight = 158;
var qq_banner_filename = "广告图片链接地址";
var qq_gotoUrl = '广告链接地址';document.write("<div id=eteUnionUpFloat style='margin:0px;padding-bottom:300px;z-index: 10;position:absolute;width:"+qq_etewidth+"px;height:"+qq_eteheight+"px;'>")

document.write("<a href='"+qq_gotoUrl+"' target='_blank'><img src='"+qq_banner_filename+"' border='0' style='cursor: hand;' width='"+qq_etewidth+"' height='"+qq_eteheight+"'></a>")
document.write("</div>")
var bodyfrm = ( document.compatMode.toLowerCa()=="css1compat" ) ? document.documentElement : document.body;
var adst = document.getElementById("eteUnionUpFloat").style;
adst.top = ( bodyfrm.clientHeight - qq_eteheight ) + "px";
adst.left = ( bodyfrm.clientWidth - qq_etewidth ) + "px";
function moveR() {
adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - qq_eteheight ) + "px";
adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - qq_etewidth ) + "px";
}
var objTimer=tInterval("moveR();", 100);function CloX(){
adst.display='none';
}function ete_clodiv()
{
document.getElementById('eteUnionUpFloat').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}

电脑右下角老是有广告弹出来怎么办

方法一:启用弹出窗口阻止程序

1、打开控制面板,将查看方式设置为大图标,点击“Internet选项”;

2、在弹出的Internet属性窗口中,切换至隐私项,勾选弹出窗口阻止程序下面的“启用弹出窗口阻止程序”,点击右边的“设置”按钮;

3、在打开的弹出窗口阻止程序设置窗口中可以看到:

弹出窗口当前已被阻止(我们可以设置将特定网站添加到下表中,允许来自该站点的弹出窗口)。

4、返回到Internet属性隐私项窗口,点击应用并确定。


方法二:禁止网页自启动项阻止网页弹出广告窗口

在任务管理器中禁止网页自启动项,如果有自启动的网页项,点击禁止。

具体操作:

按Win+R键打开运行窗口,输入MSConfig,回车打开系统配置窗口,切换至启动项,禁止自启动的网页项。


方法三:修改注册表值阻止网页弹窗广告

1、按Win+R打开运行窗口,输入regedit,回车进入注册表编辑器;

2、依次展开至HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsNTCurrentVersionWinlogon,在右侧找到并选择删除“LegalNoticeCaption”和“LegalNoticeText”两个键值。


弹出广告js代码 广告置于右下角的解决方法

可关闭,可最小化,带点淡入淡出效果的右下角弹出广告;

参考如下:

<html>
<head>
<title>右下角广告代码</title>
<styletype="text/css">
#msg_win{border:1pxsolid#A67901;background:#EAEAEA;width:300px;position:absolute;right:2;margin:0px;display:none;overflow:hidden;z-index:99;}
#msg_win.icos{position:absolute;top:2px;*top:0px;right:2px;z-index:9;}
.icosa{float:left;color:#833B02;margin:1px;text-align:center;text-decoration:none;font-family:webdings;}
.icosa:hover{color:#fff;}
#msg_title{background:#FECD00;border-bottom:1pxsolid#A67901;border-top:1pxsolid#FFF;border-left:1pxsolid#FFF;color:#000;height:25px;line-height:25px;text-indent:5px;}
#msg_content{margin:2px;width:300px;height:200px;overflow:hidden;}
</style>
</head>
<body>
<pstyle="height:1000px;"></p>
<divid="msg_win"style="display:block;top:490px;visibility:visible;opacity:1;">
<divclass="icos"><aid="msg_min"title="最小化"href="javascript:void0">_</a><aid="msg_clo"title="关闭"href="javascript:void0">×</a></div>
<divid="msg_title">广而告之:</div>
<divid="msg_content"><ahref="http://www.baidu.com/"target="_blank"><imgsrc="http://www.codefans.net/ad_include/zhubajie300_270.gif"width="300"height="270"border="0"></a></div>
</div>
</body>
</html>
<scriptlanguage="javascript">
varMessage={
t:function(){//最小化与恢复状态切换
vart=this.minbtn.status==1?[0,1,'block',this.char[0],'最小化']:[1,0,'none',this.char[1],'恢复'];
this.minbtn.status=t[0];
this.win.style.borderBottomWidth=t[1];
this.content.style.display=t[2];
this.minbtn.innerHTML=t[3]
this.minbtn.title=t[4];
this.win.style.top=this.getY().top;
},
clo:function(){//关闭
this.win.style.display='none';
window.onscroll=null;
},
tOpacity:function(x){//设置透明度
varv=x>=100?'':'Alpha(opacity='+x+')';
this.win.style.visibility=x<=0?'hidden':'visible';//IE有绝对或相对定位内容不随父透明度变化的bug
this.win.style.filter=v;
this.win.style.opacity=x/100;
},
show:function(){//渐显
clearInterval(this.timer2);
varme=this,fx=this.fx(0,100,0.1),t=0;
this.timer2=tInterval(function(){
t=fx();
me.tOpacity(t[0]);
if(t[1]==0){clearInterval(me.timer2)}
},10);
},
fx:function(a,b,c){//缓冲计算
varcMath=Math[(a-b)>0?"floor":"ceil"],c=c||0.1;
returnfunction(){return[a+=cMath((b-a)*c),a-b]}
},
getY:function(){//计算移动坐标
vard=document,b=document.body,e=document.documentElement;
vars=Math.max(b.scrollTop,e.scrollTop);
varh=/BackCompat/i.test(document.compatMode)?b.clientHeight:e.clientHeight;
varh2=this.win.offtHeight;
return{foot:s+h+h2+2+'px',top:s+h-h2-2+'px'}
},
moveTo:function(y){//移动动画
clearInterval(this.timer);
varme=this,a=parInt(this.win.style.top)||0;
varfx=this.fx(a,parInt(y));
vart=0;
this.timer=tInterval(function(){
t=fx();
me.win.style.top=t[0]+'px';
if(t[1]==0){
clearInterval(me.timer);
me.bind();
}
},10);
},
bind:function(){//绑定窗口滚动条与大小变化事件
varme=this,st,rt;
window.onscroll=function(){
clearTimeout(st);
clearTimeout(me.timer2);
me.tOpacity(0);
st=tTimeout(function(){
me.win.style.top=me.getY().top;
me.show();
},600);
};
window.onresize=function(){
clearTimeout(rt);
rt=tTimeout(function(){me.win.style.top=me.getY().top},100);
}
},
init:function(){//创建HTML
function$(id){returndocument.getElementById(id)};
this.win=$('msg_win');
vart={minbtn:'msg_min',clobtn:'msg_clo',title:'msg_title',content:'msg_content'};
for(varIdint){this[Id]=$(t[Id])};
varme=this;
this.minbtn.onclick=function(){me.t();this.blur()};
this.clobtn.onclick=function(){me.clo()};
this.char=navigator.urAgent.toLowerCa().indexOf('firefox')+1?['_','::','×']:['0','2','r'];//FF不支持webdings字体
this.minbtn.innerHTML=this.char[0];
this.clobtn.innerHTML=this.char[2];
tTimeout(function(){//初始化最先位置
me.win.style.display='block';
me.win.style.top=me.getY().foot;
me.moveTo(me.getY().top);
},0);
returnthis;
}
};
Message.init();
</script>

javascript 右下角 广告代码?

<HTML><HEAD>
<TITLE>网页特效观止|JsCode.CN|---页面右下角弹出类似QQ或MSN的消息提示</TITLE>
<SCRIPT language=JavaScript>
<!--

/**//*
** ==================================================================================================
** 类名:CLASS_MSN_MESSAGE
** 功能:提供类似MSN消息框
** 示例:
---------------------------------------------------------------------------------------------------

//width:层宽度、height:层高度、caption:层的标题、title:题目类型、content:内容、UrID:对应的数据库的ID号
var MSG = new CLASS_MSN_MESSAGE(width,height,caption,title,message,content,UrID){
MSG.show();

---------------------------------------------------------------------------------------------------
** 作者:ttyp
** 邮件:ttyp@21cn.com
** 日期:2005-3-18
** ==================================================================================================
**/

/**//*
* 消息构造
*/
var oPopup = window.createPopup(); //IE5.5+
var windowsUrl="模拟QQ右下角提示窗体.htm";//var windowsUrl=null;//这个是Windows的连接主地址:修改地址
//width:层宽度、height:层高度、caption:层的标题、title:题目类型、content:内容、UrID:对应的数据库的ID号
function CLASS_MSN_MESSAGE(width,height,caption,title,message,content,UrID){
// this.id = id;
this.title = title;
this.caption= caption;
this.message= message;
//this.target = target;
//this.action = action;
this.width = width?width:200;
this.height = height?height:120;
this.timeout= 150;
this.speed = 20;
this.step = 1;
this.right = screen.width -1;
this.bottom = screen.height;
this.left = this.right - this.width;
this.top = this.bottom - this.height;
this.timer = 0;
this.pau = fal;
this.clo = fal;
this.autoHide = true;
contt=content;//内容
IDD=UrID;
}

/**//*
* 隐藏消息方法
*/
CLASS_MSN_MESSAGE.prototype.hide = function(){
if(this.onunload()){

var offt = this.height>this.bottom-this.top?this.height:this.bottom-this.top;
var me = this;

if(this.timer>0){
window.clearInterval(me.timer);
}

var fun = function(){
if(me.pau==fal||me.clo){
var x = me.left;
var y = 0;
var width = me.width;
var height = 0;
if(me.offt>0){
height = me.offt;
}

y = me.bottom - height;

if(y>=me.bottom){
window.clearInterval(me.timer);
me.Pop.hide();
} el {
me.offt = me.offt - me.step;
}
me.Pop.show(x,y,width,height);
}
}

this.timer = window.tInterval(fun,this.speed)
}
}

/**//*
* 消息卸载事件,可以重写
*/
CLASS_MSN_MESSAGE.prototype.onunload = function() {
return true;
}
/**//*
* 消息命令事件,要实现自己的连接,请重写它
*
*/
CLASS_MSN_MESSAGE.prototype.oncommand = function(){
//this.clo = true;
this.hide();
//获取到ID号
var xID=oPopup.document.getElementById("hiddenID").value;
window.open(windowsUrl+"?id="+xID);//连接到的地址------------------可根据情况自己填写参数-------------------------需要修改

}
/**//*
* 消息显示方法
*/
CLASS_MSN_MESSAGE.prototype.show = function(){

this.Pop = oPopup;

var w = this.width;
var h = this.height;
var str = "<DIV style='BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX: 99999; LEFT: 0px; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: " + w + "px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: " + h + "px; BACKGROUND-COLOR: #c9d3f3'>"
str += "<TABLE style='BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid' cellSpacing=0 cellPadding=0 width='100%' bgColor=#cfdef4 border=0>"
str += "<TR>"
str += "<TD style='FONT-SIZE: 12px;COLOR: #0f2c8c' width=30 height=24></TD>"
str += "<TD style='PADDING-LEFT: 4px; FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #1f336b; PADDING-TOP: 4px' valign=middle width='100%'>" + this.caption + "</TD>"
str += "<TD style='PADDING-RIGHT: 2px; PADDING-TOP: 2px' valign=middle align=right width=19>"
str += "<SPAN title=关闭 style='FONT-WEIGHT: bold; FONT-SIZE: 12px; CURSOR: hand; COLOR: red; MARGIN-RIGHT: 4px' id='btSysClo' >×</SPAN></TD>"
str += "</TR>"
str += "<TR>"
str += "<TD style='PADDING-RIGHT: 1px;PADDING-BOTTOM: 1px' colSpan=3 height=" + (h-28) + ">"
str += "<DIV style='BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 8px; BORDER-TOP: #728eb8 1px solid; PADDING-LEFT: 8px; FONT-SIZE: 12px; PADDING-BOTTOM: 8px; BORDER-LEFT: #728eb8 1px solid; WIDTH: 100%; COLOR: #1f336b; PADDING-TOP: 8px; BORDER-BOTTOM: #b9c9ef 1px solid; HEIGHT: 100%'>" + this.title + "<BR>" //这里的隐藏域用来存字段的id号hiddenID
//这里的btCommand是调用方法onCommand只执行方法体类的Windowns.open地址
str += "<DIV style='WORD-BREAK: break-all' align=left><input type='hidden' name='hiddenID' id='hiddenID' value='"+IDD+"'/><A href='javascript:void(0)' hidefocus=fal id='btCommand'><FONT color=#ff0000>【" + this.message + "】</FONT></A><br><font color=blue>"+contt+"</font></DIV>"//<A href='http://www.sohu.com' hidefocus=fal id='ommand'>
//<FONT color=#ff0000>"+contt+"</FONT></A></DIV>"//这里是连接的地址
str += "</DIV>"
str += "</TD>"
str += "</TR>"
str += "</TABLE>"
str += "</DIV>"

oPopup.document.body.innerHTML = str;

this.offt = 0;
var me = this;

oPopup.document.body.onmouover = function(){me.pau=true;}
oPopup.document.body.onmouout = function(){me.pau=fal;}

var fun = function(){
var x = me.left;
var y = 0;
var width = me.width;
var height = me.height;

if(me.offt>me.height){
height = me.height;
} el {
height = me.offt;
}

y = me.bottom - me.offt;
if(y<=me.top){
me.timeout--;
if(me.timeout==0){
window.clearInterval(me.timer);
if(me.autoHide){
me.hide();
}
}
} el {
me.offt = me.offt + me.step;
}
me.Pop.show(x,y,width,height);

}

this.timer = window.tInterval(fun,this.speed)

var btClo = oPopup.document.getElementById("btSysClo");

btClo.onclick = function(){
me.clo = true;
me.hide();
}

var btCommand = oPopup.document.getElementById("btCommand");
btCommand.onclick = function(){
me.oncommand();
}
}
/**//*
** 设置速度方法
**/
CLASS_MSN_MESSAGE.prototype.speed = function(s){
var t = 10;
try {
t = praInt(s);
} catch(e){}
this.speed = t;
}
/**//*
** 设置步长方法
**/
CLASS_MSN_MESSAGE.prototype.step = function(s){
var t = 1;
try {
t = praInt(s);
} catch(e){}
this.step = t;
}

CLASS_MSN_MESSAGE.prototype.rect = function(left,right,top,bottom){
try {
this.left = left !=null?left:this.right-this.width;
this.right = right !=null?right:this.left +this.width;
this.bottom = bottom!=null?(bottom>screen.height?screen.height:bottom):screen.height;
this.top = top !=null?top:this.bottom - this.height;
} catch(e){}
}
var MSG1 = new CLASS_MSN_MESSAGE(200,120,"短消息提示:","您有1封消息","标题:肚子饿了","内容:今天没有吃饭","11111111");
MSG1.rect(null,null,null,screen.height-50);
MSG1.speed = 50;
MSG1.step = 5;
MSG1.show();

//同时两个有闪烁,只能用层代替了,不过层不跨框架
//var MSG2 = new CLASS_MSN_MESSAGE("aa",200,120,"短消息提示:","您有2封消息","好的啊");
// MSG2.rect(100,null,null,screen.height);
// MSG2.show();
//-->
</SCRIPT>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY></BODY></HTML>

加点分吧 这么舍不得啊

这个是右下角有弹窗的代码,是什么病毒?

一般这种情况是下载了某些带有恶意程序软件,当安装软件后只要一联网就会弹出,先下载恶意软件清理助手查杀一下,如果不行楼主回忆一下最近是否安装了某些软件,将他卸载就应该没事了,也可在安全模式下进行一次全盘杀毒扫描以防有其他病毒。

本文发布于:2023-02-28 19:27:00,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/zhishi/a/167761571762387.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:右下角弹出广告代码(页面右下角弹出广告).doc

本文 PDF 下载地址:右下角弹出广告代码(页面右下角弹出广告).pdf

标签:弹出   右下角   广告   页面   代码
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 实用文体写作网旗下知识大全大全栏目是一个全百科类宝库! 优秀范文|法律文书|专利查询|