PDA

View Full Version : javascript to change breadcrumb differences


ivar
Mar-30-2006, 01:23 PM
My smugmug nickname is "ivar". When browsing through my cat/subcat/gall's, that is the first thing you see in the breadcrumb. I want to change that to "Home", just makes more sense to me.

Anyway, i put the following code in my footer:

<script type="text/javascript">
var objElement = document.getElementById("breadcrumb")
if (objElement != null) {
var str = new String(objElement.innerHTML);
str = str.replace('Ivar', 'Home');
objElement.innerHTML = str;
}</script>

In my Category & Sub-Categories pages it works fine, however in my galleries, it still shows "Ivar" and when clicked i am being sent to "home.smugmug.com".

Anyone know why there is that difference, and what i need to do to get it to work in my gallery pages?

{JT}
Mar-30-2006, 05:41 PM
Just search for >Ivar< and replace with >Home<

My smugmug nickname is "ivar". When browsing through my cat/subcat/gall's, that is the first thing you see in the breadcrumb. I want to change that to "Home", just makes more sense to me.

Anyway, i put the following code in my footer:

<script type="text/javascript">
var objElement = document.getElementById("breadcrumb")
if (objElement != null) {
var str = new String(objElement.innerHTML);
str = str.replace('Ivar', 'Home');
objElement.innerHTML = str;
}</script>

In my Category & Sub-Categories pages it works fine, however in my galleries, it still shows "Ivar" and when clicked i am being sent to "home.smugmug.com".

Anyone know why there is that difference, and what i need to do to get it to work in my gallery pages?

ivar
Mar-31-2006, 02:56 AM
Just search for >Ivar< and replace with >Home<WOOHOO, it works!!! Thanks :thumb:clap