How do I display or hide a Javascript menu based on the current url in a php page?
I want to specify when a java menu appears on a page based on the current url - does anyone have a script for the vars and conditional statements to make this happen - it would be something like this in natural language:
<javascript>
if currenturl =
http://jemmakidd.com/categories.php
then displaymenu
else if currenturl =
http://jemmakidd.com/categories.php?cat=14 (or 15,16 etc)
then DONOTdisplaymenu
What is needed is that, if you look at this page there is a java menu under the first category:
http://jemmakidd.com/categories.php
I WANT the menu to appear on that page so that is working, however if I look at one of the store categories, like on this page, I do NOT want the menu to appear - it may be that this can be done without using a java current url type function - thats why I'm asking...
http://jemmakidd.com/categories.php?cat=14
So to summarise:
http://jemmakidd.com/categories.php (If this url is used DO display menu - if any other url DONT display menu)
Thanks again...any ideas?