https://www.icyphoenix.com/viewtopic.php?f=28&t=6307&p=43184#p43184
-----------------------------------
Mighty Gorgon
Wed 19 Aug, 2009 11:33

Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
-----------------------------------
Lopa is right about Global Vars.

If you need that you can declare it in your style CFG file.

About keeping the menu open or close depends on where you put the code that checks cookie content.


For example in [b]nav_quick_links.tpl[/b]:

[codeblock]<div id="main_links2" class="nav-menu">
...
</div>
<div id="main_links" class="js-sh-box">
	<script type="text/javascript">
	<!--
	tmp = 'main_links';
	if(GetCookie(tmp) == '2')
	{
		ShowHide('main_links', 'main_links2', 'main_links');
	}
	//-->
	</script>
</div>[/codeblock]

Make sure that code is after the content block...

[codeblock]<div id="main_links2" class="nav-menu">
...
</div>[/codeblock]


