SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Problem with a movable navigation menu -- overlapping

    At my Get the Look site I use javascript to make the menu follow the user down the page (check out one of the longer pages to make it work).

    When the browser window gets set to certain sizes, the menu overlaps the footer:



    Does anyone know of a way that I could make it stop before it overlaps? To see the problem, try making your browser wide and short, then scroll to the bottom.

    Here's some of the more important code:

    Javascript:
    Code:
    <!-- Begin
    function setVariables() {
    if (navigator.appName == "Netscape") {
    v=".top=";
    dS="document.";
    sD="";
    y="window.pageYOffset";
    }
    else {
    v=".pixelTop=";
    dS="";
    sD=".style";
    y="document.body.scrollTop";
       }
    }
    function checkLocation() {
    object="object1";
    yy=eval(y);
    eval(dS+object+sD+v+yy);
    setTimeout("checkLocation()",10);
    }
    //  End -->
    The DIV that surrounds the navigation:
    Code:
    <div id="object1" style="position:relative; visibility:visible; left:0px; top:0px; z-index:2">
    NAV TABLE INSIDE HERE
    </div>
    Thanks! I appreciate any help!
    Last edited by Adam P.; Aug 31, 2002 at 12:07.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com


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
  •