There is no such external file with this script though, of course, one could be employed and would probably be a good idea if the same menu is used on numerous pages.
There are at least two ways to go in such a situation. You could remove the call to the external file from the one page and put a separate copy of the script, with the desired changes, on that page.
Or, what I would recommend, is to set things up so that different values could be used on the one page but still employing the external file. There are quite a number of ways to do that, here's one. On the external script, all you need are these changes (red):
Code:
var persistmenu=typeof isindex=='undefined'? "yes" : "no"; //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
and:
Code:
if ((persistmenu=="yes"||typeof isindex!='undefined') && document.getElementById)
window.onunload=savemenustate
Then on your index page have this before the call to the external script:
Code:
<script type="text/javascript">
var isindex=1;
</script>
Bookmarks