I have a simple menu bar that many webpages display, I wanted to put the code in a separate html file so that it was easier to maintain, as apposed to modifing ten or more files when a change is made.
<li id="menuHome"><a href="index.html">Home</a></li>
<li id="menuResults"><a href="results.htm">Results</a></li>
<li id="menuEvents"><a href="events.htm">Events</a></li>
from html documents it is included by
from php documents it is included by
<?php include "MenuBlock.html";?>
I want to know who is including this file so that I can adjust the CSS properties to reflect that the proper menu item is selected.
I had thought that the above would work, but the "calling document" is not the actual referrer.
How can I tell which page is including this, or am I going totally in the wrong direction. (New to webpages)
Thank you in advance.