I need to dynamically modify a menu based on the url. i.e.
if I'm on the home page, it would be like this:
<span class="mainmenuspan">Home</span>
otherwise it would be like this:
<a class="mainmenu" href="http://www.mysite.com">Home</a>
Now, for most pages, I can just check the HTTP_REFERER to see what page
I'm on, but how would I be able to tell if I'm on the Home page? The
url could be http://www.mysite.com or http://www.mysite.com/ or
http://www.mysite.com/index.html
The script to build the menu is going to be called like this
and return HTML:
<script language="JavaScript" type="text/JavaScript">
document.write('<scr' + 'ipt language="JavaScript" '+
'src="mainmenu.php"></scr' + 'ipt>');
</script>
<noscript>To see the Main Menu, turn on javascript.</noscript>
Anyone have any bright ideas on how to accomplish this?