wemustdesign Posted April 4, 2009 Share Posted April 4, 2009 I am wanting to create a menu. When a user is on a page such as the contact page the contact menu item will be highlighted using css. Does anybody know any tutorials or code examples which would help me create this? Thanks Chris Quote Link to comment Share on other sites More sharing options...
Floydian Posted April 4, 2009 Share Posted April 4, 2009 You can parse the URI and extract the file name of the page you're on. Match that up to a list of pages, and bam. For instance, document.url for this page here holds the value of: "http://www.phpfreaks.com/forums/index.php?action=post;topic=246347.0;num_replies=0" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.