Dr.CustUmz
03-09-2016, 05:40 PM
so we have a html link
<a href="http://google.com">Google</a>
and we target the google.com part like this
return this.each(function(){
var link = $(this);
var url = settings.service
.replace("__URL__" , link.attr("href"))
.replace("__DOMAIN__", link.attr("href")
.replace("http://","").replace("https://", ""));.......more code
and this works, for my normal href's
but i want to target a link like this
<a href="out.php?link=http://google.com">Google</a>
so the end __URL__ is only "google.com"
i have tried many ways, and looking at this code the obvious replace has been done
replace("out.php?link=http://","").replace("out.php?link=https://", "")
im stuck, i set a demo up HERE (http://drcustumz.me/test.html)
<a href="http://google.com">Google</a>
and we target the google.com part like this
return this.each(function(){
var link = $(this);
var url = settings.service
.replace("__URL__" , link.attr("href"))
.replace("__DOMAIN__", link.attr("href")
.replace("http://","").replace("https://", ""));.......more code
and this works, for my normal href's
but i want to target a link like this
<a href="out.php?link=http://google.com">Google</a>
so the end __URL__ is only "google.com"
i have tried many ways, and looking at this code the obvious replace has been done
replace("out.php?link=http://","").replace("out.php?link=https://", "")
im stuck, i set a demo up HERE (http://drcustumz.me/test.html)