• Position menu bar in JAVA

    Author
    Topic
    #364465

    I am progressing with my menu bar, but now I need/want it placed below a table not at 0,0. I tried moveTo and moveBy. All of those just placed a gray board to the left and top of the page.

    What I have is a two row table with graphics in the cells. I want the menu to be below the company name and title of the page. I currently have both the table and the javascript in the Head section of the page.

    Thank you for your assistance. Fay

    Viewing 1 reply thread
    Author
    Replies
    • #559609

      Hi Fay

      You did not say so in your post, but it seems that your text file is an html file (and not a java script file).

      The problem is that nav bars have only been written so far to sit at the top or the side of a page. In order to achieve what you wish, I believe you’re going to have to set up your site with frames. This is doable with Front Page.

      The first of your two graphics is the same on every page; so that should be no issue. It would sit within the header frame for the entire site.

      The second graphic has the same style throughout your site, but in fact changes with each page. It is possible for this to be the second row frame on its own; with the navbar forming the “header” of the third row frame – which would contain the main content of each page. This layout for your site would, however, require both the second and the third row frames to change simultaneously each time a viewer navigated to a different part of your site. I am prepared to be corrected, but I believe this may be for fairly advanced websites and go beyond the resources that you have set aside for your site with your ISP.

      The alternative for the second graphic is to place it below the nav bar; and so only have one frame changing each time your users navigate. This may, however, disrupt the fairly clean design you have on your site.

      BTW people joining this thread may need to refer to Fay’s previous
      thread on Java.

      HTH

      • #559610

        Thank you for responding and your comments about my site.

        I have in the past stayed away from frames. The main reason being concerns regarding different browsers handling of frames. Is that a non issue at this time? Should I still be concerned?

        Thank you. Fay

        • #559611

          If you look at my (vastly different) site, you’ll see that I’ve stayed away from frames for the very same reason.

          The issue is what kind of target audience do you reckon you’ll have. In my case, I know that users will use browsers such as Pine (one of the VERY first) and other legacy configurations. I am not clear how many of your users will be under such constraints.

          Netscape, in fact, pioneered the advanced use of frames on its own site. Anyone with a new browser since about 1997 should have no difficulty with frames.

          DHTML (which is a key feature of your nav bar) is something which is quite different. For example, putting the tables inside your header did not disrupt the nav bar on IE, but on Netscape 4.7 it made all the links so small that the text disappeared. I do not have Netscape 6.2 (which is a free download) installed on my machine at present, but with Mozilla (which is roughly Netscape 6.3 beta) the nav bar does not show at all.

          Unless your visitors are long term, low budget home users, I suspect that they will all have either IE 4+ (the standard used on the Dynamic Drive site) or Netscape. I have not looked at Top Bars III and IV at Dynamic Drive, but I do note that they are the only ones which are said to work on ALL modern browsers. If they are more complex than you wish, it MAY be possible to “simplify” them.

        • #559612

          If they can run java then frames aren’t a problem.

          I recently worked on an intranet site with frames though- and I found they didn’t give me enough flexibility. For instaance, if I had a dropdown menu in one frome, the dropdown did not extend beyond the bottom of the frame.

          • #559613

            Thanks guys. I will look into the Nav III and IV. Hard to believe people are still using antique browsers.

            Got another question. I tried to make a page with just the nav bar and a logo graphic. Then I wanted to insert it into the top of the other pages. Thereby having only one place to go to make changes. But when I inserted it above or below the 2nd page’s tag it didn’t work. Any ideas.

            Thank you. Fay

            • #559616

              If you take the java script out to another page, you basically have to turn the whole thing on its head and make the source page a java script page which includes the html as part of its script. Administratively, it’s far simpler. The thing is that it takes a fair bit of time to set up.

              Just like there are people who swear by Grandma’s remedies, there are people who find the problems that folks are having with WIndows XP yet one more good reason for sticking with Windows 3.11.

            • #559620

              If you haven’t already found it, there’s a good tutorial here at Dynamic Drive. If you simply put the nav bar (and the graphic underneath it) in one frame, that could achieve your “low maintenance” goal in a simpler fashion.

    • #559801

      Fay

      I think I stand corrected. This page at The JavaScript Source appears to accomplish what you’ve been looking to do.

    Viewing 1 reply thread
    Reply To: Reply #559612 in Position menu bar in JAVA

    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