Adding java messes up my links...Can you help?
kygarden
Registered Users Posts: 1,060 Major grins
Hi,
For my http://www.openbloom.com/ site, if I try to add some java to the 'Bottom Javascript' section, it messes up my Galleries link at the top of the page. I guess it messes up all the links up there like Home, Galleries, About Me. I was going to play around with some Google ads at the bottom of my page to see what it looked like, but as soon as I add it, my links at the top of the page get broken. When I click on Galleries, it goes right back to the home page for example.
There's already some java in this section and I assume somehow the addition of the Google ad java is not playing well with it. Someone in the past helped me create the links at the top of my page so I'm not very familiar with what this script does. I'd like to keep everything as is, but just add the small google ad at the bottom. I may not like the ads there, but I want to at least try it for a bit.
Here's what's already in the Bottom Javascript section (someone helped me with this in the past):
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
Any ideas on how to add the new Google ad javascript without breaking anything?
Thanks!
For my http://www.openbloom.com/ site, if I try to add some java to the 'Bottom Javascript' section, it messes up my Galleries link at the top of the page. I guess it messes up all the links up there like Home, Galleries, About Me. I was going to play around with some Google ads at the bottom of my page to see what it looked like, but as soon as I add it, my links at the top of the page get broken. When I click on Galleries, it goes right back to the home page for example.
There's already some java in this section and I assume somehow the addition of the Google ad java is not playing well with it. Someone in the past helped me create the links at the top of my page so I'm not very familiar with what this script does. I'd like to keep everything as is, but just add the small google ad at the bottom. I may not like the ads there, but I want to at least try it for a bit.
Here's what's already in the Bottom Javascript section (someone helped me with this in the past):
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
Any ideas on how to add the new Google ad javascript without breaking anything?
Thanks!
0
Comments
Sebastian
SmugMug Support Hero
So, how would I deal with this? I tried to add it to my Custom Footer in the past but it didn't seem to have any affect. I didn't see the google ad at the bottom.
I suggest that you add the code and then write back so we could see what may be the issue.
For future customization questions, they're best posted on the customization forum:
http://www.dgrin.com/forumdisplay.php?f=31
SmugMug Support Hero
Have a good day.
Sebastian
SmugMug Support Hero
tag you opened with the closing
tag. Please make sure to close all tags you open properly to prevent site issues.SmugMug Support Hero