Results 1 to 4 of 4

Thread: Menu on Multiple Pages

  1. #1
    Join Date
    Mar 2008
    Location
    Pontiac Mi.
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Menu on Multiple Pages

    I have a menu that I want to place on multiple pages of my website http://littleconeyisland.com/Menu4.html
    I don't want to paste the code on ALL the pages of my website.
    I want to call it from somewhere else but I CAN NOT figure it out.
    Its getting very frustrating because I don't really know what to look for.
    can anyone help? please? PLEASE??
    Last edited by lilconey123; 05-21-2008 at 03:56 AM. Reason: I still need help and I'm not getting anymore responses.

  2. #2
    Join Date
    May 2008
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default inc file

    If you want the same piece of code on each site like a menu or a footer, you can use includes to generate them. Whereby you store the repeated code in a separate file and call it into each page, you will need to change your file extension so the page can generate to asp.

    Hope this helps any more questions let me know.

    http://www.soula.com

  3. #3
    Join Date
    Mar 2008
    Location
    Pontiac Mi.
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy got my hopes up a little bit

    is this what I should put on the pages that I want the menu to show up?

    <!--#include virtual="/Menu4.asp" -->

    I can only get it to show up in Dreamweaver as I preview it.
    When all my files are uploaded online my menu doesn't show up.

  4. #4
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you don't want to change all of your extensions to .shtml you can use an iframe. not the best way but it will work. Make sure you make the iframe large enough to show all of the menu and you should plan ahead and make it large enough to display perceived future menu additions.

    Code:
    <iframe id="datamain" src="menu.html" width="250" height="300" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>
    i use an iframe to display the car show list on this page of my website
    http://www.dynamitedave.com/carshows.html

Bookmarks

Posting Permissions

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