Results 1 to 2 of 2

Thread: How to make top bar not reload again

  1. #1
    Join Date
    Jan 2007
    Posts
    1

    How to make top bar not reload again

    Hello,
    Thanks to all users of this forum is it helpfull. I have a sample here "http://www.divingco.com.au/index.html" when I click on the menu I have noticed at the top of the page a bar image area it does not reflash when I click on Company Profile for example it changes only the text content but the topbar and menu section do not reload again, do you know how to do this? Thanks.
    Regards

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Wherever you have content that is the same on lots of pages you have two choices:-

    Either do it the old way which has the page set up as frames where the frames for the header and menu links and footer are linked to just one separate page for each header, menu or footer to avoid editing every page when something needs changing. The main page also has a frame for the content and this changes to show a different content page according to which menu button is clicked. This method is not recommended now but still works fine and you could use it if your host/isp does not support the next method.

    Use a "server side include" method such as PHP or shtml. In this method there are several different main pages with different content. At the positions where you would have repetitive code on each page you insert SSI code instead of all the header, menu or footer codes. Separate files include only the header, menu of footer code (no doctype, head section, html or body tags). The host server substitutes the SSI code with the html code in the separate content files before downloading by the viewer.

    In the divingco.com source file there are no frames so they did not use method 1. There is no sign of SSI code but that is what they probably used - it can't be seen by the viewer as it was all changed by the server before downloading.

    Or they just repeated the code on every page which seems unlikely.

    To use SSI you need to check whether your contract with your host or ISP supports it. Cheap contracts for free webspace never do.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Javascript drop down Bar
    By cavendish in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 08 May 2006, 04:08 PM
  2. Top 15 Niches – Where don't or do u make money!
    By no-Namer in forum Freelancing
    Replies: 0
    Last Post: 26 Sep 2005, 07:31 PM

Posting Permissions

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