PDA

View Full Version : Not calling up DHTML drop-downs. Not sure why



blueuniverse
Sat 16th Jul '05, 9:32am
Ok, basically my link (which should call up the drop-down) is.....


<a href="search.php?$session[sessionurl]" accesskey="4"><img src="images/v4/misc/search.gif" alt="search" width="61" height="29" border="0" /><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></a>

It isn't inside a td tag or anything and that is all I've got. It should call up the search drop-down box but it just goes to search.php instead so how (without using td tags) would I call it up?

Jake Bunce
Sat 16th Jul '05, 12:28pm
You need to give the popup element an id so the browser knows which element spawns the menu. for example, you could surround your code with this:



<div id="navbar_search">

</div>


...or it may work to include the id in the link tag:



<a id="navbar_search" href="search.php?$session[sessionurl]" accesskey="4"><img src="images/v4/misc/search.gif" alt="search" width="61" height="29" border="0" /><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></a>

blueuniverse
Sat 16th Jul '05, 12:37pm
Including the id in the link tag worked excellently. Thanks :)