【Html】Js Script判断访问来路并跳转指定到url

admin 2021年4月3日18:57:17评论62 views字数 2943阅读9分48秒阅读模式

Js Script 判断访问来路并跳转指定到Url,Seo作弊用的:

function HideMenu()
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
 if (isvisible == true)
{
  vDiv = document.all("menuDiv");
  mX = window.event.clientX + document.body.scrollLeft;
  mY = window.event.clientY + document.body.scrollTop;
  if ((mX parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY parseInt(vDiv.style.top)+vDiv.offsetHeight)){
   vDiv.style.visibility = "hidden";
   isvisible = false;
  }
}
}

function ShowMenu(vMnuCode,tWidth) {
 vSrc = window.event.srcElement;
 vMnuCode = "

";

 h = vSrc.offsetHeight;
 w = vSrc.offsetWidth;
 l = vSrc.offsetLeft + leftMar+4;
 t = vSrc.offsetTop + topMar + h + space-2;
 vParent = vSrc.offsetParent;
 while (vParent.tagName.toUpperCase() != "BODY")
 {
  l += vParent.offsetLeft;
  t += vParent.offsetTop;
  vParent = vParent.offsetParent;
 }

 menuDiv.innerHTML = vMnuCode;
 menuDiv.style.top = t;
 menuDiv.style.left = l;
 menuDiv.style.visibility = "visible";
 isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
 var i;
 for (i=size; i>0; i--)
 {
  var rect = document.createElement('div');
  var rs = rect.style
  rs.position = 'absolute';
  rs.left = (el.style.posLeft + i) + 'px';
  rs.top = (el.style.posTop + i) + 'px';
  rs.width = el.offsetWidth + 'px';
  rs.height = el.offsetHeight + 'px';
  rs.zIndex = el.style.zIndex - i;
  rs.backgroundColor = color;
  var opacity = 1 - i / (i + 1);
  rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
  el.insertAdjacentElement('afterEnd', rect);
  global.fo_shadows[global.fo_shadows.length] = rect;
 }
}
document.writeln("")

var s=document.referrer
if(s.indexOf("baidu")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("google")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("tom")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("sina")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("163")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("sogou")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("yahoo")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("3721")>0)
self.location="http://www.baidu.com/";

var s=document.referrer
if(s.indexOf("msn")>0)
self.location="http://www.baidu.com/";

    Js Script 判断访问来路并跳转指定到Url,Js Script 判断访问来路,Js Script 跳转指定到Url,Js Script 判断来路,Js Script 跳转Url,Js Script 判断访问,Js Script 跳转到Url,Js Script 访问来路,Js Script 跳转。

文章来源于lcx.cc:【Html】Js Script判断访问来路并跳转指定到url

相关推荐: 【漏洞】Windows 缩略视图栈缓冲区溢出

Microsoft Windows "CreateSizedDIBSECTION()" 缩略视图栈缓冲区溢出漏洞 受影响系统:     Microsoft Windows XP Professional     Microsoft Windows Vista …

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年4月3日18:57:17
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【Html】Js Script判断访问来路并跳转指定到urlhttp://cn-sec.com/archives/319359.html

发表评论

匿名网友 填写信息