Thread: javascript
View Single Post
Old 04-16-2014, 07:16 AM  
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
Quote:
Originally Posted by sarettah View Post
Well, it appears to me that you will never send anyone to msn.com with that.

Your first condition document.referrer.indexOf('https://gfy.com/') > -1 should send anyone from gfy to yahoo. Since the second condition also includes the first condition it will never be hit.

So, if you wanted to do that switch condition 1 and 2 around. Make condition 1 be gfy.com/forum and condition 2 be just gfy. That way the ones to the forums will be redirected to msn and then anyone else from gfy will be redirected to yahoo.

I had done the exact match conditions because you had included specific pages in your example. As I said, it was a very simple version.

Glad it worked for you.

.


i will correct that and remove that switch " > -1)"

tnx for the heads up , cheers
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs

Last edited by CPA-Rush; 04-16-2014 at 07:18 AM..
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook