Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    9
    Member #
    17370
    I hope this makes sense!

    on a website that i'm designing currently (i'm a complete newbie) i have a sidebar of links with a load of java stuff for cool animations on every page. each time i add a new page, i then need to add it to the sidebar in the HTML code of each and every one of the pre-existing pages, which is very time consuming.

    in the interests of saving time, would it not be possible to just have one file which contains the code for the sidebar, and which I update regularly to add new pages and stuff, and then get all of the other pages to sort of embed that file within their code so that whatever is changed in it is changed on them?

    thanks for your help!

  2.  

  3. #2
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    This question gets asked a gazillion times. Look up "php includes" thru google. That's the best way. If you have DW you can use the "save as template" feature.

  4. #3
    Member
    Join Date
    Dec 2009
    Location
    Cambridge UK
    Posts
    60
    Member #
    20543
    Liked
    1 times
    Perhaps more simply look at server side includes where you can load the contents of a file into your web pages.

    Rich

  5. #4
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    <div><?php include("file.html"); ?></div>

    while($get_it !== true){ continue; }


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:29 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com