Results 1 to 9 of 9
  1. #1
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Position menu bar in JAVA

    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
    Attached Files Attached Files

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    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
    <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=htm&Number=102297&page=0&vi ew=collapsed&sb=5&o=0&fpart=>thread</A> on Java.

    HTH
    Gre

  3. #3
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    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

  4. #4
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    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.
    Gre

  5. #5
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    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.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  6. #6
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    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 </Head> tag it didn't work. Any ideas.

    Thank you. Fay

  7. #7
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    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.
    Gre

  8. #8
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    If you haven't already found it, there's a good tutorial <A target="_blank" HREF=http://wsabstract.com/frame1.shtml>here</A> 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.
    Gre

  9. #9
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Position menu bar in JAVA

    Fay

    I think I stand corrected. This <A target="_blank" HREF=http://javascript.internet.com/navigation/cascade-menu.html>page</A> at The JavaScript Source appears to accomplish what you've been looking to do.
    Gre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •