var hop; var placeholder; if (!placeholder) { placeholder = "xxxxx"; } // JVPlus settings var JVPlus = { hide : false, // Hide links? owner : "", // Default ID ratio : 0, enabled : true, setLinks : function(linkList) { if (linkList == undefined) { linkList = document.links; } for (var i=0;i 0) { // Ratio'd affiliate IDs: // Decide whether to give credit to the referrer or to the site owner JVPlus.ratio = Math.min(JVPlus.ratio, 100); JVPlus.ratio = Math.max(JVPlus.ratio, 0); var realRatio; if (JVPlus.ratio > 1) { realRatio = JVPlus.ratio / 100; } else { realRatio = JVPlus.ratio; } var rand = Math.random(); if (rand > realRatio) { hop = JVPlus.owner; } } } if (hop && hop.match(',')) { var hopList = hop.split(','); var hopIndex = Math.floor(Math.random() * hopList.length); hop = hopList[hopIndex]; } }, cloakAffiliateLink : function(linkObject) { var newURL; if (newURL = lookup(linkObject.href)) { // If "hop" is "undefined", rebrand regular links but not affiliate links. if (newURL.match(placeholder) && hop == undefined) { return false; } if (JVPlus.hide) { linkObject.onclick = function() { window.location = matchLink(this); return false; }; return true; } else { if (newURL = newURL.replace(placeholder, hop, 'g')) { linkObject.href = newURL; return true; } } } return false; }, cloakNormalLink : function(linkObject) { var match; if (match = linkObject.href.match(/^(.*)#(.*)#/)) { var realLink = match[1]; var cloakedLink = '/' + match[2]; linkObject.href = cloakedLink; linkObject.onclick = function() { document.location = realLink; return false; } } }, registry : { } }; var cloak = new Object(); var claim = new Object(); var rebrand = new Object(); // JV Plus 1.55 - by Robert Plank - http://www.jvplus.com // Add cloaked links here, one on each line. // Place xxxxx in the URL where you want the affiliate ID to be substituted. cloak['example.com'] = 'http://xxxxx.example.com'; cloak['phpinabox.com'] = 'http://xxxxx.phpinabox.com'; cloak['blackhatphp.com'] = 'http://xxxxx.blackhatphp.com'; cloak['lightningphp.com'] = 'http://xxxxx.lightningphp.com'; cloak['impactphp.com'] = 'http://xxxxx.impactphp.com'; cloak['pushbuttonphp.com'] = 'http://xxxxx.pushbuttonphp.com'; cloak['speakthegeek.com'] = 'http://xxxxx.speakthegeek.com'; cloak['superchargedphp.com'] = 'http://xxxxx.superchargedphp.com'; cloak['fullblastphp.com'] = 'http://xxxxx.fullblastphp.com'; cloak['jvplus.com'] = 'http://xxxxx.jvplus.com'; cloak['actionpopup.com'] = 'http://xxxxx.actionpopup.com'; cloak['topsecretphp.com'] = 'http://xxxxx.topsecretphp.com'; cloak['phponcrack.com'] = 'http://xxxxx.phponcrack.com'; cloak['javascriptoncrack.com'] = 'http://xxxxx.javascriptoncrack.com'; cloak['phprevealed.com'] = 'http://xxxxx.phprevealed.com'; cloak['websitesoncrack.com'] = 'http://xxxxx.websitesoncrack.com'; cloak['softwaresecretsexplained.com'] = 'http://xxxxx.softwaresecretsexplained.com'; cloak['salespagetactics.com/volume1'] = 'http://xxxxx.salespagetactics.com/volume1'; cloak['salespagetactics.com/volume2'] = 'http://xxxxx.salespagetactics.com/volume2'; cloak['salespagetactics.com/volume3'] = 'http://xxxxx.salespagetactics.com/volume3'; cloak['salespagetactics.com'] = 'http://xxxxx.salespagetactics.com'; cloak['simplejavascript.com'] = 'http://xxxxx.simplejavascript.com'; cloak['sonicphp.com'] = 'http://xxxxx.sonicphp.com'; cloak['phpdecoded.com'] = 'http://xxxxx.phpdecoded.com'; cloak['phpuncensored.com'] = 'http://xxxxx.phpuncensored.com'; cloak['simplephp.com/volume1'] = 'http://xxxxx.simplephp.com/volume1'; cloak['simplephp.com/volume2'] = 'http://xxxxx.simplephp.com/volume2'; cloak['simplephp.com/volume3'] = 'http://xxxxx.simplephp.com/volume3'; cloak['simplephp.com'] = 'http://xxxxx.simplephp.com'; cloak['fiveminutephp.com'] = 'http://xxxxx.fiveminutephp.com'; cloak['wordpressoncrack.com/advanced'] = 'http://xxxxx.wordpressoncrack.com/advanced'; cloak['wordpressoncrack.com/seo'] = 'http://xxxxx.wordpressoncrack.com/seo'; cloak['wordpressoncrack.com/techie'] = 'http://xxxxx.wordpressoncrack.com/techie'; cloak['fastfoodcopywriting.com'] = 'http://xxxxx.fastfoodcopywriting.com'; cloak['paydotcom.net'] = 'http://paydotcom.net/?affiliate=285616'; cloak['clickbank.com'] = 'http://simplephp.reseller.hop.clickbank.net'; // Add claimed traffic sources // For example, claim all traffic from "stevenschwartzman.com" to the affiliate ID "stevenss" claim['stevenschwartzman.com'] = 'stevenss'; claim['TOPIC_ID=223429'] = 'bookmoney'; rebrand['stevenss'] = "Brought to you by Robert Plank and Steven Schwartzman!"; // Cookie functions var Cookie = { set : function(name, value, days) { // Default to a 1 year cookie if (days == undefined) { days = 365; } // Format date string var date = new Date(); date.setTime(date.getTime() + (days * 86400000)); // Set cookie name, value, and expiration date document.cookie = name + "=" + value + "; expires=" + date.toGMTString() + "; path=/"; }, get : function(name) { // Find the cookie's value in the document cookie string var results = document.cookie.match( new RegExp("(?:^|; )" + name + "=" + "(.*?)(?:$|;)") ); // Return the value if a match was found, undefined otherwise if (results && results.length > 1) return results[1]; return undefined; }, clear : function(name) { // Erase a cookie setCookie(name, "", -1); } }; document.getElementsByClassName = function(clsName){ var retVal = new Array(); var elements = document.getElementsByTagName("*"); for(var i = 0;i < elements.length;i++) { if (elements[i].className.indexOf(" ") >= 0) { var classes = elements[i].className.split(" "); for(var j = 0;j < classes.length;j++){ if(classes[j] == clsName) { retVal.push(elements[i]); } } } else if(elements[i].className == clsName) { retVal.push(elements[i]); } } return retVal; }; // Procedural code JVPlus.brand(); var shareLayer; if (shareLayer = document.getElementById("jvplus-share")) { shareLayer.innerHTML = '

Share This Site ... And Make Money!

Refer people to this site with your ClickBank affiliate ID and get paid when they make a purchase.



Powered by JV Plus

'; } document.write(''); function cobrand(layer, customHopLayer) { var localHop; if (hopObject = document.getElementById(customHopLayer)) { localHop = hopObject.value; } else { localHop = hop; } if (layer.length && layer.length > 0) { var i; for (i=0;i= 1) { return unescape(results[1]); } return undefined; } function getClaim(refer, haystack) { if (haystack == undefined) { haystack = claim; } if (refer == undefined) { refer = document.referrer; } for (claimURL in haystack) { if (refer.match(claimURL)) { var affiliateID = haystack[claimURL]; return affiliateID; } } }