JavaScript works but then I noticed a problem when the reload button was clicked. When reload is clicked the link has http://myurl.com/pagename.php#MAIN_TOP#MAIN_TOP
I am sure there is a better way I just don't know what it is and was hoping someone could help.
here is the code for the footer menu.
Code: Select all
<script type="text/javascript">
var this_page="";
this_page=document.URL;
this_page=this_page+"#MAIN_TOP";
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
overfilter="";
overflow="scroll";
position="relative";
aI("text=Home;url=<?php echo HTTP_SERVER; ?>;");
aI("text=The Top;url="+this_page+";");
aI("text=Site Map;url=<?php echo HTTP_SERVER . "sitemap.php" ?>;");
aI("text=Milonic Menus;url= http://milonic.com/;target=_blank;");
}
drawMenus();
</script>