![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am new to html programming. I have created a web with 17 different pages. On each page is a button menu which allow the user to switch to another page without returning to the home page . The button menu is 40 lines long. What I would like to do is make a new file "ButtonSub.html " which the button menu code. I would then remove all of the button codes from each form . Instead , I would insert a statement that would call ButtonSub.html to create the button menu on each html.page Clear as mud???. |
#3
| |||
| |||
|
|
Chuck [Sbc) wrote: I am new to html programming. I have created a web with 17 different pages. On each page is a button menu which allow the user to switch to another page without returning to the home page . The button menu is 40 lines long. What I would like to do is make a new file "ButtonSub.html " which the button menu code. I would then remove all of the button codes from each form . Instead , I would insert a statement that would call ButtonSub.html to create the button menu on each html.page Clear as mud???. You can do that with a server-side include using PHP or other technology. That's assuming your Web site's server provides PHP. This is how I include the same menu on all pages on my site: div id="doc_header" !-- start menu HTML import-- ?php include("./styles/menu.txt"); ? !-- END menu HTML import-- /div I use similar markup to put the same footer on each page. -- Ed Mullen http://edmullen.net If man evolved from apes why do we still have apes? |
#4
| |||
| |||
|
|
Ed I tried but I don't understand what I am to put in ("/styles/menu.txt") My menu is contained in "ButtonSub.html" |
#5
| |||
| |||
|
|
Ed I tried but I don't understand what I am to put in ("/styles/menu.txt") My menu is contained in "ButtonSub.html" "Ed Mullen" <ed (AT) edmullen (DOT) net> wrote in message news:9aKdnaSg_56LHUzanZ2dnUVZ_vrinZ2d (AT) comcast (DOT) com... Chuck [Sbc) wrote: I am new to html programming. I have created a web with 17 different pages. On each page is a button menu which allow the user to switch to another page without returning to the home page . The button menu is 40 lines long. What I would like to do is make a new file "ButtonSub.html " which the button menu code. I would then remove all of the button codes from each form . Instead , I would insert a statement that would call ButtonSub.html to create the button menu on each html.page Clear as mud???. You can do that with a server-side include using PHP or other technology. That's assuming your Web site's server provides PHP. This is how I include the same menu on all pages on my site: div id="doc_header" !-- start menu HTML import-- ?php include("./styles/menu.txt"); ? !-- END menu HTML import-- /div I use similar markup to put the same footer on each page. -- Ed Mullen http://edmullen.net If man evolved from apes why do we still have apes? |
|
!-- start menu HTML import-- ?php include("./yourpath/ButtonSub.html"); ? !-- END menu HTML import-- |
#6
| |||
| |||
|
|
Chuck [Sbc) wrote: Ed I tried but I don't understand what I am to put in ("/styles/menu.txt") My menu is contained in "ButtonSub.html" "Ed Mullen" <ed (AT) edmullen (DOT) net> wrote in message news:9aKdnaSg_56LHUzanZ2dnUVZ_vrinZ2d (AT) comcast (DOT) com... Chuck [Sbc) wrote: I am new to html programming. I have created a web with 17 different pages. On each page is a button menu which allow the user to switch to another page without returning to the home page . The button menu is 40 lines long. What I would like to do is make a new file "ButtonSub.html " which the button menu code. I would then remove all of the button codes from each form . Instead , I would insert a statement that would call ButtonSub.html to create the button menu on each html.page Clear as mud???. You can do that with a server-side include using PHP or other technology. That's assuming your Web site's server provides PHP. This is how I include the same menu on all pages on my site: div id="doc_header" !-- start menu HTML import-- ?php include("./styles/menu.txt"); ? !-- END menu HTML import-- /div I use similar markup to put the same footer on each page. -- Ed Mullen http://edmullen.net If man evolved from apes why do we still have apes? Essentially, substitute your filename for mine. The file should contain the HTML code for your menu system. If you don't need the div statements and comments, don't use them. So, the bare-bones code would be: !-- start menu HTML import-- ?php include("./yourpath/ButtonSub.html"); ? !-- END menu HTML import-- |
#7
| |||
| |||
|
|
Chuck [Sbc) wrote: Ed I tried but I don't understand what I am to put in ("/styles/menu.txt") My menu is contained in "ButtonSub.html" Then Google is your friend: http://www.google.com/search?hl=en&q...oogle+S earch php includes tutorial - Google Search -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com |
#8
| |||
| |||
|
|
Chuck [Sbc) wrote: I tried but I don't understand what I am to put in ("/styles/menu.txt") My menu is contained in "ButtonSub.html" div id="doc_header" !-- start menu HTML import-- ?php include("./path/to/ButtonSub.html"); ? !-- END menu HTML import-- /div A URL for your site would help with any further answers. Please don't top-post. -- -bts -Friends don't let friends drive Vista |
#9
| |||
| |||
|
|
I don't know "Please don't top-post" |
#10
| |||
| |||
|
|
Chuck [Sbc) wrote: I don't know "Please don't top-post" Don't POST on TOP of what you're responding to. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net |
![]() |
| Thread Tools | |
| Display Modes | |
| |