PDA

View Full Version : External html-doc?



benjaminesbjerg
10-25-2009, 04:32 PM
I started writing my own website all by myself for the first time
I use the Smooth Navigational Menu (http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm)
I wonder if i could have the menu in an external html-document an then link to my pages?
OR in other words: Every time i would like to change something menu-related, i could go to a 'menu'-document, instead of do the same change in every html-file i have?

Guess it's a pretty dumb question, but i'm a noobie in website programming. Hope you can help me!:confused:

jscheuer1
10-25-2009, 05:15 PM
See:

http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm#ajax

However, there is another method for this. If you have a server side language like asp or PHP available on your live site, you may use it to have the HTML markup included on your pages.

But seeing as how you are just starting out, unless you are familiar with includes on the server side, you will probably be better off using the method linked to above.

molendijk
10-26-2009, 12:25 AM
Or you could try this (http://www.dynamicdrive.com/forums/blog.php?bt=64). Demo here (http://molendijk.110mb.com/include_menu9a/index.html?page1.html).
===
Arie Molendijk.

jscheuer1
10-26-2009, 12:49 AM
Or you could try this (http://www.dynamicdrive.com/forums/blog.php?bt=64). Demo here (http://molendijk.110mb.com/include_menu9a/index.html?page1.html).
===
Arie Molendijk.

But, in this case, just like with a server side include, since the script already has a built in method for this, our user would probably be best off using it, again (as explained here):

http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm#ajax

@Arie - In the future, I would appreciate you staying out of something like this at least until the original person has had a chance to respond. My thinking being - why confuse them with more options until they've at least tried one. In any case - NOW, please wait until they respond before replying here. If you would like to discuss this with me, PM me.

benjaminesbjerg
10-26-2009, 05:56 PM
Thanks for all responses!
I've guess i should have read the entire instuction before using it.
Thanks a lot!

I choose to begin reading PHP tuts, i've wanted to do this for some time, and this just is another argument. I look forward to have a easier-editable website.

Again, thanks!