Results 1 to 4 of 4

Thread: Help with DD Script

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

    Default Help with DD Script

    I have the Top Navigation Bar script on my site from this link here http://www.dynamicdrive.com/dynamicindex1/index.html It is the 1st one. Now it is supposed to stay at the top of my page so you can see it as you scroll down but it doesn't scroll down with me. I have looked and looked but it just stays at the top and out of view as you are scrolling. Can any of you help me figure out why it might be doing that. The site it is on is here. http://sheras-letters/stuff.com/ Just click on my logo and it will take you to the page with it there. Any help is well appreciated. This is my first post so I hope I did this right.

    Thank you,
    Shera

  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

    Every time I try to go to your page to check this out I get a 'page cannot be displayed'. If I try to go to the root URL, stuff.com, I get some search page somewhere telling me that the domain name is available to be purchased. How about giving us the real link to your page so we can figure out the problem?
    - John
    ________________________

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

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

    Default

    Is this your page:

    http://sheras-letters-n-stuff.com/ ?

    cr3
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  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

    Thanks Cr3, I'll assume that it is, if so, here is the solution:

    With that doctype:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    "http://www.w3.org/TR/REC-html40/loose.dtd">
    the UpdateIt script must be rewritten as 'document.body' no longer works as expected. This UpdateIt script now works in IE with or without that doctype and possibly with other doctypes but, I can't say as much for the rest of the menu. Here is the new UpdateIt script:

    Code:
    <script type="text/javascript">
    function iecompattest(){
    return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
    }
    function UpdateIt(){
    if (ie&&keepstatic&&!opr6)
    document.all["MainTable"].style.top = iecompattest().scrollTop+"px";
    setTimeout("UpdateIt()", 200);
    }
    UpdateIt();
    </script>
    Use it to replace this:

    Code:
    <script language="JavaScript">
    function UpdateIt(){
    if (ie&&keepstatic&&!opr6)
    document.all["MainTable"].style.top = document.body.scrollTop;
    setTimeout("UpdateIt()", 200);
    }
    UpdateIt();
    </script>
    and all will be right with the world.
    Last edited by jscheuer1; 04-30-2005 at 05:36 PM.
    - 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
  •