Can I repeat the navegation bar at the bottom of a page?

Hello,
Some webpages I am writing are fairly long. I would like to repeat the navegation bar at the bottom of the page, so that the reader does not have to go to the top of the page to navegate through the pages of my website.
Thank you!

Allanfrance,
I played around with the script a bit more and couple potential problems came up with the script:
1) Race condition, that is when the nav bar is not completely loaded and the script duplicates it, therefore the bottom nav bar will not be created.
2) Both nav bars may not render correctly when you use decorated themes, themes with fancy background ie: Darkroom, Layered paper etc...
So this is an improved script, please use this instead of the previous one:
<script type='text/javascript'>
function bottomNavbar()
bottomNav = parent.document.createElement('div');
bottomNav.innerHTML = parent.document.getElementById('nav_layer').innerHTML;
bottomNav.removeChild(bottomNav.childNodes[1]);
bottomNav.removeChild(bottomNav.childNodes[2]);
parent.document.getElementById('body_layer').appendChild(bottomNav);
if (window.addEventListener) {
window.addEventListener("load",setTimeout("bottomNavbar()", 500),false);
} else if (window.attachEvent) {
window.attachEvent("onload",setTimeout("bottomNavbar()", 500));
} else {
window.onload = function() {bottomNavbar();}
</script>

Similar Messages

  • How can I implement a status bar at the bottom of a resizable application?

    Hello all,
    I am a JavaFx newbie and I am implementing an application (a Sokoban game), with a menu at the top of the frame and a gaming area covering the rest of the frame. To support the game, I have to load images at certain positions in the gaming area.
    The game also includes a level editor with another menubar and where images are set to other positions.
    I implemented this in another view, swiching from the game mode to the level editor mode and vice versa is just done by setting the other view visible. Up to now this works, here the important statements building these details:
    Group root = new Group();
    gameView = new Group(); // for gaming mode
    le_view = new Group()   // for level editor mode
    MenuBar gameMenubar = new MenuBar();
    Menu menuGame = new Menu(bundle.getString("MenuGame"));
    ... building the menu items and menues ...
    gameView.getChildren().add(gameMenubar);
    ImageView buildingView[][] = new ImageView[22][22];
    for (nCol = 0; nCol < 22; nCol++) {
        for (nRow = 0; nRow < 22; nRow++) {
            buildingView[nCol][nRow] = new ImageView();
            buildingView[nCol][nRow].setX(nCol * 26 + 5);
            buildingView[nCol][nRow].setY(nRow * 26 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
    gameView.setVisible(true);
    root.getChildren().add(gameView);
    ... same stuff to build the le_view ...
    le_View.setVisible(false);
    root.getChildren().add(le_View);
    Scene scene = new Scene(root, 800, 600, Color.CORNSILK); Now I want to introduce a status bar at the bottom of the frame, which of course has to follow the bottom of the frame, if it is resized. And of course the menu and the status bar should not grow vertically, if the height of the frame is increased.
    The implementation seems to be easy with StackPane for the frame and one BorderPane for each mode.
    For the first step I only tried implementing the game mode with only one BorderPane (just setting the menu, the gaming area and the status bar each into a HBox and setting these three HBoxes at the top, into the center and at the bottom). I also tried this via GridPane and via VBox; I always get any erroneous behaviour:
    Either the menubar is visible, but the menus do not pop up the menu items, or the anchor point of the menu and of gaming area are set 100 pixels left of the left frame border and move into the frame when the frame width is increased, or the menu is set 20 pixels below the top of the frame, or HBox with the menu grows when the frame height is increased, so that the anchor point of the gaming area moves down.
    Can you describe me a correct construction of such a frame? Thanks in advance.
    Best regards
    Gerhard

    Hello Gerhard,
    Glad the code helped, thanks for a fun layout exercise.
    For the draft code I just pulled an icon off the internet over a http connection.
    If you haven't done so already place any icons and graphics you need local to your project, so that resource lookups like:
    Image img = new Image("http://www.julepstudios.com/images/close-icon.png");become
    Image img = new Image("close-icon.png");then performance may improve.
    Another possible reason for your performance problem could be that when you use a vbox, the vbox content can overflow the area of the borderpane center and might be sitting on top of the menu pane, making you unable to click the menu (which is what happens to me when I try that with the draft program with the vbox wrapping mod, then resize the scene to make it smaller). This was a trick which caught me and the reason that I used a Group originally rather than a vbox. I found a vbox still works but you need to tweak things a bit. The trick I saw was that the order in which you add stuff to the borderpane is important. The borderpane acts like a stack where the last thing added floats over the top of everything else if you size the scene small enough. For your project you want the menu on top always, so it always needs to be the last thing added to the borderpane, but when you swap in the level pane for the game pane, then back out again, the game pane can end up on top of the menu which makes the menu seem like you can't click it (only when the scene is sized small enough). It was quite a subtle bug which took me a little while to work out what was happening. For me the solution was to add just one vbox to the center of the border, and then swap the game pane and the level editor in and out of the vbox, that way the center of the layout always stayed behind the menu bar and the status bar.
    I added some revisions to reflect the comments above and placed some comments in the code to note what was changed and why.
    public class SampleGameLayoutRevised extends Application {
      public static void main(String[] args) { Application.launch(args); }
      public void start(Stage stage) throws Exception {
        final BorderPane gameLayout = new BorderPane();
        final Group gameView = new Group();
        final MenuBar gameMenubar = new MenuBar();
        final Menu gameMenu = new Menu("Mode");
        final VBox centerView = new VBox();
        centerView.setStyle("-fx-background-color: darkgreen");  // we set a background color on the center view to check if it overwrites the game menu.
        MenuItem playGameMenu = new MenuItem("Play Game");
        MenuItem levelEditMenu = new MenuItem("Edit Levels");
        gameMenu.getItems().add(playGameMenu);
        gameMenu.getItems().add(levelEditMenu);
        gameMenubar.getMenus().add(gameMenu);
        final StackPane levelEditView = new StackPane();
        levelEditView.getChildren().add(new Text("Level Editor"));
        ImageView buildingView[][] = new ImageView[22][22];
        Image img = new Image("http://www.julepstudios.com/images/close-icon.png");  // use of http here is just for example, instead use an image resource from your project files.
        for (int nCol = 0; nCol < 22; nCol++) {
          for (int nRow = 0; nRow < 22; nRow++) {
            ImageView imgView = new ImageView(img);
            imgView.setScaleX(0.5);
            imgView.setScaleY(0.5);
            buildingView[nCol][nRow] = imgView;
            buildingView[nCol][nRow].setX(nCol * 20 + 5);
            buildingView[nCol][nRow].setY(nRow * 20 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
        final VBox statusBar = new VBox();
        final Text statusText = new Text("Playing Game");
        statusBar.getChildren().add(statusText);
        statusBar.setStyle("-fx-background-color: cornsilk"); // we set a background color on the status bar,
                                                              // because we can't rely on the scene background color
                                                              // because, if the scene is sized small, the status bar will start to overlay the game view
                                                              // and if we don't explicitly set the statusBar background the center view will start
                                                              // to bleed through the transparent background of the statusBar.
        gameLayout.setCenter(centerView); // we add the centerview first and we never change it, instead we put it's changeable contents in a vbox and change out the vbox content.
        gameLayout.setBottom(statusBar);
        gameLayout.setTop(gameMenubar);   // note the game layout is the last thing added to the borderpane so it will always stay on top if the border pane is resized.
        playGameMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(gameView);
            statusText.setText("Playing Game");
        levelEditMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(levelEditView);
            statusText.setText("Editing Level");
        playGameMenu.fire();
        Scene scene = new Scene(gameLayout, 800, 600, Color.CORNSILK);
        stage.setScene(scene);
        stage.show();
    }Other than that I am not sure of a reason for the slowdown you are seeing. In my experience JavaFX has been quick and responsive for the tasks I have been using it for. Admittedly, I just use if for a bunch of small trial projects, but I've never seen it unresponsive for a minute.
    - John

  • When is select Bookmarks from the Menu Bar, at the very bottom are a bunch of bookmarks. How can I move them in groups to a folder?

    When is select Bookmarks from the Menu Bar, at the very bottom are a bunch of bookmarks. How can I move these in groups to a folder or folders?

    The easiest way to move bookmarks around is in the Bookmarks Organizer, which at some point was renamed the Library. To open it, you can choose Bookmarks > Show All Bookmarks or press Ctrl+Shift+b.
    (Please note that the sort order of the Library dialog doesn't actually carry over to the menu. To sort the menu alphabetically, it's easiest to open the Bookmarks Sidebar, right-click the words Bookmarks Menu and choose Sort by Name.)

  • The search bar in the top right hand side of my screen works fine, but the main search bar in the middle of the home screen doesn't at all; do you know how I can fix this?

    I can access bookmarked pages, pages that are on a saved RSS feed, and can search the web using the top right-hand bar on my screen. However, the main bar, in the center of the home page (not sure of the correct name) will not do anything - whether I press search, or hit enter on my keyboard. There also appears to be another bar underneath that, which I can press, but it remains useless.
    My Dad is running Firefox 4 on his computer, and has showed me what it is meant to look like. I can therefore conclude that there is definitely something up with mine.
    I am currently using Firefox 4 with my laptop, which runs Windows 7.
    I have uninstalled and reinstalled Firefox 4, but the problem still remains. I am not keen to use Internet Explorer, purely because I have bookmarked so many pages on the previous version of Firefox but also because I get on very well with the whole layout etc.
    If it comes to it, I am willing to take the risk of losing my bookmarks, but if there are any suggestions at '''''all''''' of how I could possibly fix this problem, I would welcome them.

    Go to this address: http://mycroft.mozdev.org/search-engines.html?country=AU
    Item 24 lists 3 installable major search engines for Australia.
    You can also restrict your search in Google by including ''country:au'' or ''location:au'' or ''city:perth'' (for example) in your search terms. Example: ''city:sydney plumbers'' in the Google search box will list plumbers in cities named sydney.

  • All of a sudden I can no longer open tabs by clicking "+" or right clicking on the tool bar. To open a new page, I have to open a whole newFirefox window. How can I fix this?

    All of a sudden I can no longer open tabs by clicking "+" or right clicking on the tool bar. To open a new page, I have to open a whole new Firefox window. How can I fix this?
    Also, Firefox crashes frequently. Is there a fix for this also?

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox 3.6 that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons
    For the second issue, the [[Firefox crashes]] support article may help.

  • When i drag icons from the adress bar to the desktop they are changed to the firefox icon, how can i keep the sites icon?

    Rather than use favorites, I like to drag the icon in the address bar to the desktop or a folder to create a shortcut. In my older computers the icon in the shortcut was the same as the icon in the address bar. in my new Win 7 computer the icon is changed to a Firefox icon. How can I prevent the icon from being changed?

    If you drag a link or favicon on the left end of the location bar onto the desktop to create an internet shortcut then that shortcut gets the icon of the default browser.
    If you want a different icon (favicon) then you have to assign that icon yourself to the desktop shortcut (right-click: Properties).
    You can usually get the favicon if you append "favicon.ico" to the main domain of a website (e.g. http://www.mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder or see if you can find it in "Tools > Page Info > Media".

  • Can I shorten the search bar in the navigation toolbar?

    In the navigation toolbar, right after the settings icon, is a long search bar. Can I shorten this or get rid of it completely?

    The location bar and search bar have a flex property that makes them take all available space on the toolbar. If you remove the search bar via View > Toolbars > Customize then the location bar will take that space. If you place the mouse pointer between the location bar and the search bar then you can change the relative wide of both by dragging the resizer left or right.

  • Using footage from my iPhone 4, how can I remove the black bars on the sides of my picture? Or change the color to white...

    My footage is vertical and there are two black bars on the side filling in the rest of the picture. I want to imbed this into PowerPoint without the black bars on the side. Any suggestions on how I can remove them or at least change the color to white? I changed the background color in View > Background > White, but it was only for editing purposes and didn't keep the color after rendering.

    To change the background to white, in FCE, place the video on track V2 and place a color matte generator on track V1.  The default color for the color matte is grey so you'll need to change it to white using the color picker.
    -DH

  • Can iCal display a month bar at the bottom?

    Is it possible to make iCal display the useful bar at the bottom  - so you can click straight into any month - the way it displays on the iPad and also the iCloud website? If so, how do I do this?

    Not that I have found.
    If using the <today> link or swiping through the months while in Month view takes to long you can set the iCal page to show 'Year' then double click the month you want.
    S.

  • Can I get rid of the black bar with the icons on f...

    When on cam with a friend the black bar with the cam, mic icons fills part of screen can I remove this and still get the box to type in

    I have the same problem and hope someone has a solution.

  • Ios 7 . can the graded bar behind the lowest row of icons be turned off...it looks ugly

    Can the Graded bar behind the lowest row of icons, on the home screen,be turned off. It looks horrible.

    Sorry you can't

  • Firefox has spontaneously decided not to show the task bar at the bottom of the screen, and some menu bars have been messed up. How can I fix this?

    My Firefox has spontaneously (apparently) decided not to show the task bar at the bottom of the screen (the margin is there, but it is blank), and some menu bars have been messed up. Perhaps the most annoying aspect of these changes is the fact that I have to use alt-tab to move from a Firefox session to another session.
    I can find no way to fix these problems. Can you help? Am I going to have to uninstall and re-install Firefox in order to get back to the default settings? If so, is there any way to preserve my bookmarks?

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.
    *https://support.mozilla.org/kb/how-to-use-full-screen
    See also:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    *https://support.mozilla.org/kb/Toolbar+keeps+resetting

  • Can i put the scroll bar on the left hand side of the page

    i am left handed and using a touchscreen asus and would like to get the scroll bar on the left

    Hi!
    Yes, you can!
    # Type "about:config" (without quotations) in the urlbar and hit Enter
    # Search for "layout.scrollbar.side" (without quotations) variable
    # Double click on that
    # Modify the value to "3" (without quotations)
    # Click Ok
    # Restart Firefox

  • I want the reload button to appear outside the address bar (on the left, next to the back and forward buttons), not at the extreme end of the address bar. How can I do this?

    I want to re-position the reload button to appear outside the address bar (on the left, next to the back and forward buttons), not where it is at the moment, which is at the extreme end of the address bar and is a real hassle to use. How can I do this?

    To move the Stop and Reload buttons to their position to the left of the location bar you can use these steps:
    * Open the Customize window via "View > Toolbars > Customize"
    * Drag the Reload and Stop buttons to their previous position to the left of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise (Space or Separator) to get two distinct buttons.

  • Hi , I cant use the music bar in the control center I can only change the volume but I cant skip tracks or pause the song or play it. anyone knows the solution or the reason please?

    Hi , I cant use the music bar in the control center I can only change the volume but I cant skip tracks or pause the song or play it. anyone knows the solution or the reason please?

    That's normal.
    Use the Touch ID to unlock passcode.
    http://help.apple.com/iphone/7/#/iph672384a0b

Maybe you are looking for

  • How can I create a bootable DISK IMAGE of my PB Internal Drive?

    I would like to make a bootable image of my Hard Drive but without including any Free Space. You see all I need on the image are the OSX and the programs, NOT the 60GB of Free Space. Disk Utility however wants to create a 80gb image which includes 60

  • Can`t see the words on the browser neither connect...

    sometimes it use to connect to the wifi but usually it dosent but when it use to connect to the internet either by sim card or wifi i cant see the words on the browser serious problem please helpppppppp

  • 2 finger swipe only work for safari

    just installed Lion on MBP,  2 finger swipe back and forward only work for safari & ical, not even finder?

  • Can't set media kind to movie

    I imported a video in to iTunes, and it came in as a movie. It's an educational video, so I thought it would be nice to set its media type to iTunes U. I did that, then clicked iTunes U in my left hand pane, and the video did not appear. I created a

  • Half-loaded page problem in IE6 (solved)

    Hello, I had a strange problem where the CSS page would only half-load only on some computers and only sometimes (all under IE6). When this problem occured, everything after the Flash content (integrated in a container layer using SWF object) would n