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 Link to comment https://forums.phpfreaks.com/topic/152565-remember-menu-choice/ 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" Link to comment https://forums.phpfreaks.com/topic/152565-remember-menu-choice/#findComment-801448 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.