Jump to content
Sign in to follow this  
Patriot

How to make a menu?

Recommended Posts

both of the ideas are pretty cool, i messed with one of them for a while jus to see and they are very easy to customize.*my question is how can i make a menu/navigation side in an external html so that i can write the menu one time but use it on multiple pages?if you look at my site now it has a js file that is called to multiple pages but people keep asking me why i do it that way, and the reason is so the i only have to write it once and can use it multiple times.*is it possible to make a html and call it the way you do a js file?i know how to write html pretty good and am very comfortable with it, so if there is a way then i wouldnt have to mess with stuff that i dont know.

Share this post


Link to post
Share on other sites

I moved this thread from here:http://w3schools.invisionzone.com/index.php?showtopic=1129since it was hijacking Chaosdruid original thread.Ok, as mentioned in the above post, you can see that mani_ (in the fourth post) offers a way to create your menu in javascript, then call the javascript from each page. There are other methods call Server Side Includes (SSI) that you should look into as well:i.e. http://www.w3schools.com/php/php_includes.aspYou're second question is answered with the second point I make in response to your first question, look up Server Side Includes:http://www.w3schools.com/php/php_includes.aspThis should get you on the right track.:)

Share this post


Link to post
Share on other sites
:)
I moved this thread from here:http://w3schools.invisionzone.com/index.php?showtopic=1129since it was hijacking Chaosdruid original thread.Ok, as mentioned in the above post, you can see that mani_ (in the fourth post) offers a way to create your menu in javascript, then call the javascript from each page.  There are other methods call Server Side Includes (SSI) that you should look into as well:i.e. http://www.w3schools.com/php/php_includes.aspYou're second  question is answered with the second point I make in response to your first question, look up Server Side Includes:http://www.w3schools.com/php/php_includes.aspThis should get you on the right track.:)

I use fcpages.com for my freesite, they dont support hardly anything other than basic html, css, javascript and things of that nature unless you upgrade to the next level. This is only a hobby to keep me busy and out of trouble when im not working so im not interested in paying for it. (thats why i got a freesite) I will look into the ssi and see if they allow it on freesites.ok next thing, i read the all the files on javascript and messed with all the examples on w3schools website but couldnt find what i was looking for. I was told you can put like a whole page in one document.write wen i do tis is gets messed up for some reason.Q:how could I? or should I even? put everything in one doc.write*if i can, please give me a short exampl with a bunch of different tags*if i shouldnt put everything in one disregard the previousby the way, your answers are very easy to understand and your examples are even better.Thank you very much

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...