[ start | index | login ]
start > SmugMug > Bottom JavaScript

Bottom JavaScript

Created by mpecher. Last edited by mpecher, 3 years and 159 days ago. Viewed 111 times. #1
[edit] [rdf]
labels
attachments
function hasPath(sPath)
{
re = new RegExp("/" + sPath + "(/|$)");
return re.test(window.location)
}

if (hasPath("galleries")) YD.addClass(document.body, "galleries");

// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/||what are feeds?/gi, '');});

Please login to post a comment.

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< May 2012 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031


Logged in Users: (0)
… and a Guest.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.