Advertisement
zero50x

PoupUp JS трафик

Sep 25th, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. <script type="text/javascript">
  2. var params = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"
  3. function PopShow3() {
  4. CookieTest=navigator.cookieEnabled;
  5. if(CookieTest)
  6. {
  7. ClickUndercookie = GetCookie('clickunder');
  8. if (ClickUndercookie == null)
  9. {
  10. var ExpDate = new Date ();
  11. ExpDate.setTime(ExpDate.getTime() + (24 * 60 * 60 * 1000));
  12. SetCookie('clickunder','1',ExpDate, "/");
  13. window.open("http://site.ru/", "Информация", params);
  14. window.focus();
  15. }
  16. }
  17. }
  18. function GetCookie (name) {
  19. var arg = name + "=";
  20. var alen = arg.length;
  21. var clen = document.cookie.length;
  22. var i = 0;
  23. while (i < clen) {
  24. var j = i + alen;
  25. if (document.cookie.substring(i, j) == arg)
  26. return getCookieVal (j);
  27. i = document.cookie.indexOf(" ", i) + 1;
  28. if (i == 0) break;
  29. }
  30. return null;
  31. }
  32. function SetCookie (name, value) {
  33. var argv = SetCookie.arguments;
  34. var argc = SetCookie.arguments.length;
  35. var expires = (argc > 2) ? argv[2] : null;
  36. var path = (argc > 3) ? argv[3] : null;
  37. var domain = (argc > 4) ? argv[4] : null;
  38. var secure = (argc > 5) ? argv[5] : false;
  39. document.cookie = name + "=" + escape (value) +
  40. ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
  41. ((path == null) ? "" : ("; path=" + path)) +
  42. ((domain == null) ? "" : ("; domain=" + domain)) +
  43. ((secure == true) ? "; secure" : "");
  44. }
  45. document.onmouseup=PopShow3;
  46. </script>
  47.  
  48. <!--LiveInternet counter-->
  49. <script type=\"text/javascript\"><!--
  50. new Image().src = \"//counter.yadro.ru/hit?r\"+
  51. escape(document.referrer)+((typeof(screen)==\"undefined\")?\"\":
  52. \";s\"+screen.width+\"*\"+screen.height+\"*\"+(screen.colorDepth?
  53. screen.colorDepth:screen.pixelDepth))+\";u\"+escape(document.URL)+
  54. \";h\"+escape(document.title.substring(0,80))+
  55. \";\"+Math.random();//--></script>
  56. <!--/LiveInternet-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement