Log in

View Full Version : Drop downs without the arrows


blueuniverse
07-01-2005, 03:15 PM
On a style I'm working on, I need to get the drop down menus activated just by clicking on the image link but it seems the only way to get them to work is to include the arrow via this code.

<script type="text/javascript"> vbmenu_register("usercptools"); </script>


While I normally wouldn't have a problem it forces my design onto a new line and makes it look poor. Is there anyway to change the variable so it doesn't require the image or just to get the javascript working without vbmenu_register and the image which comes with it.

Posted that over at vbulletin.com and Jake Bunce said

It looks to me like this would require editing the vbmenu_doregister() function in the clientscript/vbulletin_menu.js file

and to post it over here as you guys would probably be better at helping me out.

deathemperor
07-01-2005, 06:31 PM
try <script type="text/javascript"> vbmenu_register("usercptools", true); </script>

it will remove the image. in vb3.0 it maybe 1 instead of 'true'.

Zachery
07-01-2005, 06:52 PM
<script type="text/javascript"> vbmenu_register("usercptools", 1); </script>
<script type="text/javascript"> vbmenu_register("usercptools", true); </script>

Either works

Like I said at vB.com

blueuniverse
07-01-2005, 07:47 PM
Thanks that works really well. :)