kips
New Member
Posts: 4
inherit
259616
0
Oct 12, 2019 13:52:33 GMT -8
kips
4
October 2019
kips
|
Post by kips on Oct 12, 2019 8:31:15 GMT -8
Any reason why this doesn't work with my address in it? It's in my Global Header. sundaycupleague.proboards.cominsert<script type="text/javascript">
$(document).ready(function(){
$('#banner-container').click(function(){
location.href = "URL TO WEBSITE";
});
$('#banner-container').css('cursor','pointer');
$('#banner-container a').removeAttr('href');
});
</script>
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Oct 12, 2019 10:52:03 GMT -8
Did you update this line, or is this literally what you have in your code?
location.href = "URL TO WEBSITE";
|
|
kips
New Member
Posts: 4
inherit
259616
0
Oct 12, 2019 13:52:33 GMT -8
kips
4
October 2019
kips
|
Post by kips on Oct 12, 2019 11:48:11 GMT -8
It has my link like so.
<script type="text/javascript">
$(document).ready(function(){
$('#banner-container').click(function(){
location.href = "sundaycupleague.wixsite.com/scrn";
});
$('#banner-container').css('cursor','pointer');
$('#banner-container a').removeAttr('href');
});
</script>
|
|
kips
New Member
Posts: 4
inherit
259616
0
Oct 12, 2019 13:52:33 GMT -8
kips
4
October 2019
kips
|
Post by kips on Oct 12, 2019 11:49:35 GMT -8
I even tried google and a couple others, thinking it might be wix. But they don't work either.
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Oct 12, 2019 13:08:45 GMT -8
It's probably because your URL is missing a protocol (http:// or https://). The browser thinks that "sundaycupleague.wixsite.com/scrn" is a sub-directory of your forum's domain.
If you click the banner, you'll notice the URL updates to:
http://sundaycupleague.proboards.com/sundaycupleague.wixsite.com/scrn Of course, that's not valid. Try this for your location.href:
location.href = "https://sundaycupleague.wixsite.com/scrn";
|
|
kips
New Member
Posts: 4
inherit
259616
0
Oct 12, 2019 13:52:33 GMT -8
kips
4
October 2019
kips
|
Post by kips on Oct 12, 2019 13:23:57 GMT -8
You are a saint! It now works. I swear i tried that already. I wouldn't have tried it again for nothing if you hadn't told me to. Thanks, Kip
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Oct 12, 2019 13:33:07 GMT -8
|
|