vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Creating dropdowns using images/single cell? (https://vborg.vbsupport.ru/showthread.php?t=168292)

Guest210212002 01-20-2008 02:39 PM

Creating dropdowns using images/single cell?
 
Edited for the new question. I've got images for navigation working, and I've got the dropdowns working as I'd like them, but for some reason the javascript down-arrow wants to be under the image, instead of in line with it.

http://www.sevenstring.org/chris/vb_linkq.jpg

I've gone with tables, and tried setting width="xxx" in them, but the thing still doesn't want to just stay in line with the image.

--------------- Added [DATE]1200876144[/DATE] at [TIME]1200876144[/TIME] ---------------

I ended up removing the dropdown image altogether. For those of you also trying to get this, or find it through a search, change the JS call to this:

Code:

<script type="text/javascript">vbmenu_register("menuname", true);</script>

Freesteyelz 01-21-2008 01:15 AM

In your nav images, did you define a width setting? If yes, you're forcing the dropdown image below your nav images. To overcome it wrap a <div> tag around the nav image and Javascript code. If no, then I'll need to see an example of your code.

Guest210212002 01-21-2008 01:09 PM

Yeah, I had a width defined for the images, and the cell, but neither did the trick. It's working now though. :)

Freesteyelz 01-21-2008 01:30 PM

Hmm...OK. :D

Guest210212002 01-21-2008 02:33 PM

You can also just comment this line:

Code:

// this.controlobj.appendChild(img);
Out of vbulletin_menu.js, and it gets rid of the image completely. Which looks oodles neater, if you ask me. I always hated that thing anyway. :D

http://www.sevenstring.org/chris/ss_newnavbar.jpg


All times are GMT. The time now is 03:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00995 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete