This is a discussion on "html menu problems" within the Web Page Design section. This forum, and the thread "html menu problems are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
html menu problems
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
html menu problems
I am making a webpage and have run into a problem. The site has a menu list that I want to be on each webpage. The problem is each time I add a new item to the menu or change an item I would have to go through every other webpage and change the menu on those to. How can I make it so I can use that one page, and just update that page so it will apply to all other pages. Can it be done without frames?[:
|
|
|
|
||||
|
I think the answer here is to use server side includes (SSI). This will be easy for you if you have ASP/JSP/PHP or other scripting languages available on the server.
Failing that, then I'm afraid you are gonna be stuck with either referencing a javascript (to write out the menu) or frames..... both of which are an extremely BAD idea. SSI is the way to go.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
If your server doesn't support SSI, but you do have Dreamweaver, then you can also use Dreamweaver templates. This allows you to modify the template and then dreamweaver changes all the pages in your site for you.
|
|
|||
|
What you could do is to have the javascript made into a .js file which reduces the hassle of "copying and pasting" code. Then all you have to do for the menu is to just 'copy and paste' the code. Another method is to make the menu Flash, so all you need is some code to tell the browser to load your flash movie.
|
|
|||
|
Thanks for all the suggestions. I have tried SSI, but it doesn't work for me. I am designing this page on my home computer so i'm not sure if SSI or shtml would work for me. I guess the next thing I should try if javascript, but I have no idea where to begin. Does anyone know how to update multiple pages with javascript? It seems so easy in SSI, a shame it doesn't work.
|
|
|||
|
I got it working with javascript, but im not sure if this would be the best way to do it. What if someone doesnt have javascript working, then they wouldn't be able to navigate the site. Is there another way or is javascript the best way?
|
|
||||
|
javascript is a 'LAST' resort.... search engines can't spider your site with javascript navigation.
SSI is really the best option.... try and get it going.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Can SSI work on a home computer? I followed a guide on how to use SSI, but it doesn't work for me. I'm not sure how to check if my computer supports it. I'm also not sure if my ocmputer supports shtml either.
|
|
||||
|
to answer that question (again), i'll just quote myself:-<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">javascript is a 'LAST' resort.... search engines can't spider your site with javascript navigation.<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
chobo - The answer to your question depends entirely on what server you're running. IIS or apache or another?
|
|
|||
|
I'm not running any server
If anyone knows exactly how to use php to create a template could you please show me an example. Other sites I have found tend to leave out some stuff that newbs like myself can't pick up on. |
|
|||
|
Ok, to use PHP or SSI (SHTML) you would have to install a server such as IIS or apache.
IIS is much easier on Windows XP Pro. You can install it by going to add/remove programs > add/remove windows components and selecting Internet Information services and pressing next, etc. IIS automatically runs ASP which is similiar to PHP and can do basic include statements like SSI as well as far more complex coding. This site (webforumz) for example, runs on ASP. Alternatively you can get some webspace that supports the language of your choice. Once you've decided which avenue you want to go down, let us know and we'll help you further. |
|
|||
|
I installed IIS like you said. I then tested that SSI example from a website, and it still doesn't work. Is there something else I need to do after I install IIS?
|
![]() |
| Tags |
| html, menu, problems |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Menu problems CSS | danny322 | Web Page Design | 1 | Feb 22nd, 2008 19:49 |
| Problems with flash menu in FF | afowler | Web Page Design | 4 | Dec 19th, 2007 15:04 |
| Problems with menu | Francesca15 | Web Page Design | 2 | May 10th, 2007 15:19 |
| Menu problems in IE7 | alsdevelopments | Web Page Design | 6 | Apr 5th, 2007 15:57 |
| Drop down menu problems | matelo | JavaScript Forum | 0 | Jan 16th, 2006 16:48 |