Results 1 to 10 of 10

Thread: Help with Jim's DHTML Menu V5.7, centered and pictures

  1. #1
    Join Date
    Oct 2004
    Location
    MN, USA
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Help with Jim's DHTML Menu V5.7, centered and pictures

    The site I am working on now needs to have the menu centered not in a fixed position. I have tried centering this one but must be doing something wrong. Is there a code that nulls out the pixed position and lets the thing be centered?

    The menu I really have been drooling over and am trying to replicate is located here: http://ktis.nwc.edu/page.php

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Read the file in the install directory called tutorial.htm, this is your answer from it:

    Quote Originally Posted by tutorial.htm
    Description for function menu.floatMenu()

    Invoke this function to float the main menu, so it remains relatively positioned on the page (see "example3.htm" for demo). Here's an example:

    menus[0].floatMenu(1024, 768, 10, 0);

    1024 is the base screen width (i.e. the screen width the menu was originally positioned on) and the 768 is the corresponding screen height. The 0 is how you want the menu's positioned (i.e. horizontally, vertically or both [0, 1, 2]).
    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Oct 2004
    Location
    MN, USA
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Thanks!!

    I thought I had gone through the whole tutorial loking for this info, but I guess I missed it.

    Thanks for your help!!

  4. #4
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resolution

    I've had this problem. When I used 1024 x 768 upwards, the float worked fine. However when I switched to 800 x 600 it went awry.

    I resolved the issue by switching to screen resolution 800 x 600 then editing config.js so that the menu was positioned correctly, then updated the float command to menus[0].floatMenu(800, 600, 10, 0).

    This works fine. The menu remained constant at 800 x 600, 1024 x 768 and upwards. It seems that if you edit at a lower screen size it resolves the problem.

    Mike Gibbs.

  5. #5
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh oh, now with the introduction of Firefox browser the horizontal plane of the floating menu seems to indent several pixels. Any answers???

  6. #6
    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

    I am assuming here that NS7.2 will react just like Firefox when I suggest this (from your example):
    Code:
    if (document.getElementById&&!document.all)
    menus[0].floatMenu(800, 600, 10, 0) //adjust to compensate for FF indent
    else
    menus[0].floatMenu(800, 600, 10, 0) //use IE figures here
    - John
    ________________________

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

  7. #7
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Jon, it worked a treat. Well almost. I had to change from the float parameters to the new menu parameters as follows:

    if (document.getElementById&&!document.all)
    menus[0] = new menu(22, "horizontal", -3, 157, -2, -2, "#CC9900", "#FFCC66", "Verdana,Helvetica", 9,
    "bold", "bold", "#663300", "#CC6600", 1, "#663300", 2, "", false, true, true, true, 6, false, 4, 4, "black")
    else
    menus[0] = new menu(22, "horizontal", 7, 157, -2, -2, "#CC9900", "#FFCC66", "Verdana,Helvetica", 9,
    "bold", "bold", "#663300", "#CC6600", 1, "#663300", 2, "", false, true, true, true, 6, false, 4, 4, "black");

  8. #8
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Servivce Pack 2

    Just when I thought it was safe to use this wonderful menu again. I've since found out that those people who have windows service pack 2 can't see the menu at all. It just isn't there.

    Any answers???

    Mike.

  9. #9
    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

    Who told you that? Have you seen it happen? Which service pak 2, to what? Service pak 2 just means the second service pak for a given program, which program? I'm thinking that perhaps IE5.01 service pak 2 (which was the state of the art years ago) might be what they are talking about. There are a tremendous number of scripts that won't work in that, now antiquated, browser.
    - John
    ________________________

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

  10. #10
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey Jon, who told me that??? I dunno some idiot. It seems to work fine to me.
    Thanks again.

    New issue.

    In Firefox the text seems to sit about 3 pixels higher within it's box, so it's shifted upwards of centre. It looks OK but I wonder if anyone has an answer out there (see http://www.enchantingliguria.com) to bring it in line?

    Tks.

    Mike.

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
  •