A reference page for my navigation bar

They have: 16 posts

Joined: Jan 2006

I was wondering if there was an easier way to make changes to the links on my navigation bar. Any time I have to make changes, I have to make them one page at a time. Sometimes I'm adding a new link or just changing an old one and it's very time-consuming. Could I create a reference page like I have for my js commands and style preferences? I am still very new. Any advice would help.

Busy's picture

He has: 6,151 posts

Joined: May 2001

a .js file is a javascript file and yes you can use this, although some do disable javascript because of pop ups, floating ads (even security from forms) etc so there is a chance it may not show.
A better idea is server side, PHP, ASP etc, same method except you don't have to write it out in the language, it can just be copied and pasted from your site and included.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

PHP includes as been said before is highly effective... mak an edit on htaccess file to read html as php...

They have: 16 posts

Joined: Jan 2006

If I want to make a change to my navigation area on all of my web pages from a single file, what type of file would I use to do this and how would I reference it on the original page? Could I use a css extension or is that only used for style preferences?

Busy's picture

He has: 6,151 posts

Joined: May 2001

If your hosts supports PHP you can set it up so any file type is supported for PHP, but normal are .inc (dont put passwords etc in this type of file as its basic text), .inc.php, .txt, .html, .htm ...

or if you go the javascript route use a .js extension

CSS is for preferences only

Let us know if you can use PHP, or want to use javascript and we can show you how it can be set out

They have: 16 posts

Joined: Jan 2006

I'd prefer to use java because i am a little more familiar with it. Please let me know how i can do this. All of my pages have the same links on the right navigation bar so if i need to add/delete or change something, it would be so much easier using one file. Thanks for the help.

Busy's picture

He has: 6,151 posts

Joined: May 2001

You can't use java, well you can but is more time consuming and bulky and needs to be compiled ...
You don't mean JavaScript do you? Java and Javascript are totally different

They have: 16 posts

Joined: Jan 2006

I meant java script. Can I use it to reference the links from a single file?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.