Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2011
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    interchangable content section

    Hi All,

    i've started building this site:
    http://gandhiproductions.herobo.com/viki_art/index.html

    and i want it to have a content section like this:
    http://www.lucypeacock.com/

    how is this done? (its not a new page each time)

    any help would be AWESOME!!

    cheers

    G

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello evilgandhi,
    That site you link to is a new page for each #content section. The browsers cache is working to load the #sidbar and menu so it looks like it never left.

    As an example, have a look at - http://nopeople.com/evilgandhi/about.html I only did the first 3 pages so you'd have something to flip back and forth through.

    The code you are starting with has errors in it. Check the links in my signature line about validating, that can be a big help to you.

    To make this even easier, your menu can be a server side include so you don't have to edit changes to it in 5 different pages. One file to edit and the changes are reflected to all your pages that have the include.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Aug 2011
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    include?

    Hi i think i understand what your saying, I just can't find the line of code that is telling the browser to cache it?....... OR do i not need to add any extra code?

    thank you.


  •  

    Tags for this Thread

    Posting Permissions

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