• Help in placing floating menu (javascript/html)

    Home » Forums » Developers, developers, developers » Web design and development » Help in placing floating menu (javascript/html)

    Author
    Topic
    #440518

    I’ve designed this site, and as you can see, when you open it, there is the collapsable menu at the very top. What I’d like to do is have the menu “spawn” (video-game term for where your character restarts after dying…sorry) next to the picture. Any tips?

    Viewing 1 reply thread
    Author
    Replies
    • #1055538

      I see what you have and I don’t understand what you want to change. sad

      I don’t know whether you use Firefox, but in the Errors Console, there are a zillion of these:[indent]


      Security Error: Content at http://usmc2100.apg.army.mil/mos/1161/1161desc.html may not load or link to file:///W|/www/images/blank.gif.


      [/indent]So there seems to be a bad URL somewhere.

      • #1055541

        I want the menu to start (basically) halfway down the page…sort of in a fixed location, instead of at the very top, as it does right now.

        • #1055544

          The table containing the menu has the style top:10px to position it initially, and the script function setSidebarTop() moves the menu to keep it 10px from the top inside of the window frame (see the line containing 10 + document.body.scrollTop). If you change those “10” values, the menu will appear lower.

    • #1055559

      Hi Jeremy

      I think I have this right as I took a local copy and everything has gone awry and looped!!!!

      try changing the values in

      function setSidebarTop() {

      var sidec = getObj(‘sidebar’);
      sidec.style.top = 400 + document.body.scrollTop;
      setTimeout(‘setSidebarTop()’, 10);
      }

      and the corresponding value in line 71:

      Obviously change them to the value you want

      A small point though whisperThis Dreamweaver template page isn’t XHTML 1.0 valid anymore…I suggest you deaden the link to W3C wink

    Viewing 1 reply thread
    Reply To: Reply #1055541 in Help in placing floating menu (javascript/html)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel