There is probably a 'cleaner' way to do it but, this works:
Put this script in the head of each page displaying the menu:
Code:
<script type="text/javascript">
function hideItem(item){
eval(item+'='+item+'.replace(/a href/,\'a style="display:none" href\')')
}
</script>
You could probably just include its function at the beginning of your external script like so:
Code:
function hideItem(item){
eval(item+'='+item+'.replace(/a href/,\'a style="display:none" href\')')
}
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>'
Then on each page that this menu navigates to use this in the body tag:
HTML Code:
<body onload="hideItem('menu1[0]')">
For menu1[0], just substitute the the menu#[#] you want excluded on that page.
Bookmarks