Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:21
Submenu Temporary Shown on Upper Left of Screen
Poster: blueEinstein1
Dated: Thursday August 7 2003 - 19:33:41 BST
In the code, I specified the <script>PlaceMenu('name')</script> in the right <td> cell. However, whenever I load the page, I see it on the upper left for like 1-2 seconds before it displays on the appropriate field.
Any ideas?
Poster: Hergio
Dated: Friday August 8 2003 - 5:10:14 BST
Got a URL we could see?
BTW you could try hidding the menu for a set amoun of time and then showing it. Like do what you're doing but make your main menu alwaysvisible = 0 so it doesn't show by default. Then have your onLoad event call a function (seen below) that makes the menu appear, hopefully after its moved into the right position.
Code:
<script language=javascript>
function menuAppear()
{
mn=getMenuByName("MainMenu")
menu=eval("menu"+mn)
menu[12]=1; //menu[12] is the alwaysvisible attribute of the menu
}
</script>
function menuAppear()
{
mn=getMenuByName("MainMenu")
menu=eval("menu"+mn)
menu[12]=1; //menu[12] is the alwaysvisible attribute of the menu
}
</script>