求一個右下角的漂浮廣告代碼?
右下角漂浮廣告代碼使用方法(一): 將以下代碼以**.js文件形式保存,在模板中調(diào)用這個js文件即可
(備注該代碼的圖片大小為250*150 代碼里面有參數(shù)自己看下就知道了)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、打開控制面板,將查看方式設(shè)置為大圖標(biāo),點擊“Internet選項”;
2、在彈出的Internet屬性窗口中,切換至隱私項,勾選彈出窗口阻止程序下面的“啟用彈出窗口阻止程序”,點擊右邊的“設(shè)置”按鈕;
3、在打開的彈出窗口阻止程序設(shè)置窗口中可以看到:
彈出窗口當(dāng)前已被阻止(我們可以設(shè)置將特定網(wǎng)站添加到下表中,允許來自該站點的彈出窗口)。
4、返回到Internet屬性隱私項窗口,點擊應(yīng)用并確定。
方法二:禁止網(wǎng)頁自啟動項阻止網(wǎng)頁彈出廣告窗口
在任務(wù)管理器中禁止網(wǎng)頁自啟動項,如果有自啟動的網(wǎng)頁項,點擊禁止。
具體操作:
按Win+R鍵打開運行窗口,輸入MSConfig,回車打開系統(tǒng)配置窗口,切換至啟動項,禁止自啟動的網(wǎng)頁項。
方法三:修改注冊表值阻止網(wǎng)頁彈窗廣告
1、按Win+R打開運行窗口,輸入regedit,回車進入注冊表編輯器;
2、依次展開至HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsNTCurrentVersionWinlogon,在右側(cè)找到并選擇刪除“LegalNoticeCaption”和“LegalNoticeText”兩個鍵值。
彈出廣告js代碼 廣告置于右下角的解決方法
可關(guān)閉,可最小化,帶點淡入淡出效果的右下角彈出廣告;
參考如下:
<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="關(guān)閉"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(){//最小化與恢復(fù)狀態(tài)切換
vart=this.minbtn.status==1?[0,1,'block',this.char[0],'最小化']:[1,0,'none',this.char[1],'恢復(fù)'];
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(){//關(guān)閉
this.win.style.display='none';
window.onscroll=null;
},
tOpacity:function(x){//設(shè)置透明度
varv=x>=100?'':'Alpha(opacity='+x+')';
this.win.style.visibility=x<=0?'hidden':'visible';//IE有絕對或相對定位內(nèi)容不隨父透明度變化的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(){//計算移動坐標(biāo)
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(){//創(chuàng)建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>網(wǎng)頁特效觀止|JsCode.CN|---頁面右下角彈出類似QQ或MSN的消息提示</TITLE>
<SCRIPT language=JavaScript>
<!--
/**//*
** ==================================================================================================
** 類名:CLASS_MSN_MESSAGE
** 功能:提供類似MSN消息框
** 示例:
---------------------------------------------------------------------------------------------------
//width:層寬度、height:層高度、caption:層的標(biāo)題、title:題目類型、content:內(nèi)容、UrID:對應(yīng)的數(shù)據(jù)庫的ID號
var MSG = new CLASS_MSN_MESSAGE(width,height,caption,title,message,content,UrID){
MSG.show();
---------------------------------------------------------------------------------------------------
** 作者:ttyp
** 郵件:ttyp@21cn.com
** 日期:2005-3-18
** ==================================================================================================
**/
/**//*
* 消息構(gòu)造
*/
var oPopup = window.createPopup(); //IE5.5+
var windowsUrl="模擬QQ右下角提示窗體.htm";//var windowsUrl=null;//這個是Windows的連接主地址:修改地址
//width:層寬度、height:層高度、caption:層的標(biāo)題、title:題目類型、content:內(nèi)容、UrID:對應(yīng)的數(shù)據(jù)庫的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;//內(nèi)容
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;
}
/**//*
* 消息命令事件,要實現(xiàn)自己的連接,請重寫它
*
*/
CLASS_MSN_MESSAGE.prototype.oncommand = function(){
//this.clo = true;
this.hide();
//獲取到ID號
var xID=oPopup.document.getElementById("hiddenID").value;
window.open(windowsUrl+"?id="+xID);//連接到的地址------------------可根據(jù)情況自己填寫參數(shù)-------------------------需要修改
}
/**//*
* 消息顯示方法
*/
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=關(guān)閉 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是調(diào)用方法onCommand只執(zhí)行方法體類的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();
}
}
/**//*
** 設(shè)置速度方法
**/
CLASS_MSN_MESSAGE.prototype.speed = function(s){
var t = 10;
try {
t = praInt(s);
} catch(e){}
this.speed = t;
}
/**//*
** 設(shè)置步長方法
**/
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封消息","標(biāo)題:肚子餓了","內(nèi)容:今天沒有吃飯","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>
加點分吧 這么舍不得啊
這個是右下角有彈窗的代碼,是什么病毒?
一般這種情況是下載了某些帶有惡意程序軟件,當(dāng)安裝軟件后只要一聯(lián)網(wǎng)就會彈出,先下載惡意軟件清理助手查殺一下,如果不行樓主回憶一下最近是否安裝了某些軟件,將他卸載就應(yīng)該沒事了,也可在安全模式下進行一次全盤殺毒掃描以防有其他病毒。