Results 1 to 2 of 2

Thread: Slide menu top problem

  1. #1
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slide menu top problem

    Hi, i have a problem. I have 4 different sliding menus, located on top of eachother. Once the mouse enters a box, it tabs out, and once it leaves, it returns to its origional state. The problem is that I don't know how to subtract height from the offset margin. For example, the 2nd menu bar is tabbing out when the mouse enters the 1st bar, because it's height is set at 150px.

    what i have tried to do is something like this so that there would be 100px of nothing starting from the top of the frame...



    Code:
    top:'+((parseInt(slidemenu_top)-100px)+'px;


    Is this the incorrect way of doint this?

    Please let me know.

  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

    Yeah, that's wrong. I don't need to see the rest of the code to know it's wrong but, would need time and the full code and markup to begin to figure out, for sure, the correct way to do it. I'm not even positive I understand what you want, exactly. Seeing a demo (even just an attempt) would help.
    Code:
    top:'+((parseInt(slidemenu_top)-100px)+'px;
    Is the above meant to be a line of javascript code or of css code? Anyways, there is no way you can subtract 100px from anything, as it isn't a number, it is a text string. And that's only the beginning.

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - 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
  •