Results 1 to 4 of 4

Thread: HV Menu help

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HV Menu help

    1) Script Title: HV Menu v5.5

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm

    3) Describe problem: I have the menu in a table. In Mozilla based browsers, the menu hangs a few pixels out of the left side of the table. Is there anything that I can do to correct this?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There are a number of ways of dealing with this situation, depending upon your actual layout. First off though, Mozilla is most likely displaying correctly, it is IE that is off. The likely reason that this appears otherwise is that you probably designed the page first using IE.

    In any case, IE only code in javascript can usually be written like so:

    Code:
    var some_positioning_variable=document.body.filters? 25 : 30;
    The first value (red) will be used by IE, all other browsers will use the second (green) value.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    First, I'd like to thank you for responding.

    I have been continually testing the page as I build it in AOL Explorer v1.5, Netscape v8.1, Mozilla Firefox v1.5.0.6, Opera v9.02, Internet Explorer v6.02..., and Mozilla v1.7.12.

    The menu will not position correctly in Firefox, Opera, Mozilla, or Netscape set as Firefox. Is there a hack I could use?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by jscheuer1
    In any case, IE only code in javascript can usually be written like so:

    Code:
    var some_positioning_variable=document.body.filters? 25 : 30;
    The first value (red) will be used by IE, all other browsers will use the second (green) value.
    That was it but, perhaps it could use more explanation. There are a host of values that you can set in exmplmenu_var.js - some of which look like so:

    Code:
    	var StartTop=240;				// Menu offset x coordinate
    	var StartLeft=1;				// Menu offset y coordinate
    	var VerCorrect=0;				// Multiple frames y correction
    	var HorCorrect=0;				// Multiple frames x correction
    	var LeftPaddng=3;				// Left padding
    	var TopPaddng=2;				// Top padding
    It would be by applying the hack that I already gave you that you could manipulate some of these values to compensate.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •