点击右键弹出弹出层【转】
原地址:http://js.alixixi.com/a/2016331062682.shtml
<ahref="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr>
<!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,[email protected],用.net打造靓站-->
<scriptlanguage="JavaScript1.2">
<!--
varisie=0;
if(window.navigator.appName=="MicrosoftInternetExplorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5){
isie=1;
}
else{
isie=0;
}
if(isie){
varhtml="";
html+='<TABLEstyle="border:1ptsolid#808080"bgcolor="#CCCCCC"width="140"height="220"cellpadding="0"cellspacing="1">';
html+='<ST'+'YLETYPE="text/css">\n';
html+='a:link{text-decoration:none;font-family:Arial;font-size:8pt;}\n';
html+='a:visited{text-decoration:none;font-family:Arial;font-size:8pt;}\n';
html+='td{font-size:8pt;}\n';
html+='</ST'+'YLE>\n';
html+='<SC'+'RIPTLANGUAGE="JavaScript">\n';
html+='\n<'+'!--\n';
html+='window.onerror=null;\n';
html+='/'+'-'+'->\n';
html+='</'+'SCRIPT>\n';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i0"ONMOUSEOVER="document.all.i0.style.background=\'#CFD6E8\';document.all.i0.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i0.style.background=\'#CCCCCC\';document.all.i0.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="window.history.go(-1);">返回</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i1"ONMOUSEOVER="document.all.i1.style.background=\'#CFD6E8\';document.all.i1.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i1.style.background=\'#CCCCCC\';document.all.i1.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="window.history.go(1);">前进</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"></TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i4"ONMOUSEOVER="document.all.i4.style.background=\'#CFD6E8\';document.all.i4.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i4.style.background=\'#CCCCCC\';document.all.i4.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);">加入收藏夹...</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i5"ONMOUSEOVER="document.all.i5.style.background=\'#CFD6E8\';document.all.i5.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i5.style.background=\'#CCCCCC\';document.all.i5.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="window.parent.location=\'view-source:\'+window.parent.location.href;">看源代码</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"></TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i6"ONMOUSEOVER="document.all.i6.style.background=\'#CFD6E8\';document.all.i6.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i6.style.background=\'#CCCCCC\';document.all.i6.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="window.print();">打印</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i7"ONMOUSEOVER="document.all.i7.style.background=\'#CFD6E8\';document.all.i7.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i7.style.background=\'#CCCCCC\';document.all.i7.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="window.parent.location.href=window.parent.location.href;">Refresh</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"></TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i8"ONMOUSEOVER="document.all.i8.style.background=\'#CFD6E8\';document.all.i8.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i8.style.background=\'#CCCCCC\';document.all.i8.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="if(window.parent.document.body.style.zoom!=0)window.parent.document.body.style.zoom*=1.6;elsewindow.parent.document.body.style.zoom=1.6;">zzjs.net</TD></TR>';
html+='<TR><TDstyle="border:1ptsolid#CCCCCC"id="i9"ONMOUSEOVER="document.all.i9.style.background=\'#CFD6E8\';document.all.i9.style.border=\'1ptsolid#737B92\';"ONMOUSEOUT="document.all.i9.style.background=\'#CCCCCC\';document.all.i9.style.border=\'1ptsolid#CCCCCC\';"ONCLICK="if(window.parent.document.body.style.zoom!=0)window.parent.document.body.style.zoom*=0.625;elsewindow.parent.document.body.style.zoom=0.625;">站长特效网</TD></TR>';
html+='</TABLE>';
varoPopup=window.createPopup();
}
functiondopopup(x,y){
if(isie){
varoPopupBody=oPopup.document.body;
oPopupBody.innerHTML=html;
oPopup.show(x,y,140,220,document.body);
}
}
functionclick(e){
if(isie){
if(document.all){
if(event.button==2||event.button==3){
dopopup(event.x-1,event.y-1);
}
}
}
}
if(isie){
document.oncontextmenu=function(){dopopup(event.x,event.y);returnfalse;}
document.onmousedown=click;
}
//-->
</script>
</script>