TalkieT
Oct-30-2009, 04:56 PM
I have recently added in a 'recent galleries' hack which works great.. I ended up replacing 'recent photos' so I could keep my featured galleries as well..
Anyway, I wanted to have both featured and recent galleries on my homepage, and I wanted a nice title for them, so I re-enabled the .boxtop for them, and made them a nice background image with the "featured" and "recent" titles.
I also removed the text from the .boxtops with the following code in my top JS section..
// Remove text from boxtop for Featured Galleries
YE.onContentReady('featuredTitle', function() {this.innerHTML=''});
// Remove text from boxtop for recent photos
YE.onContentReady('recentPhotosBoxTitle', function() {this.innerHTML=''});
This works great on Firefox, the text is removed instantly and looks good.
on IE however, the default text stays there until the page is almost completely rendered and then it disappears. I suspect this is something to do with onContentReady, but I honestly cut and pasted that and I don' fully understand if there's a better way to remove the text ("Featured Galleries" and "Recent Photos") than the way I came up with.
My site is www.nzsnaps.com and I'd be grateful if there was a way to make the rendering of the page a little cleaner.
Cheers - Neil Gardner
www.nzsnaps.com
Anyway, I wanted to have both featured and recent galleries on my homepage, and I wanted a nice title for them, so I re-enabled the .boxtop for them, and made them a nice background image with the "featured" and "recent" titles.
I also removed the text from the .boxtops with the following code in my top JS section..
// Remove text from boxtop for Featured Galleries
YE.onContentReady('featuredTitle', function() {this.innerHTML=''});
// Remove text from boxtop for recent photos
YE.onContentReady('recentPhotosBoxTitle', function() {this.innerHTML=''});
This works great on Firefox, the text is removed instantly and looks good.
on IE however, the default text stays there until the page is almost completely rendered and then it disappears. I suspect this is something to do with onContentReady, but I honestly cut and pasted that and I don' fully understand if there's a better way to remove the text ("Featured Galleries" and "Recent Photos") than the way I came up with.
My site is www.nzsnaps.com and I'd be grateful if there was a way to make the rendering of the page a little cleaner.
Cheers - Neil Gardner
www.nzsnaps.com