A reference page for my navigation bar
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 posted this at 20:13 — 19th February 2006.
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 posted this at 17:32 — 20th February 2006.
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...
xyphlo posted this at 01:27 — 23rd February 2006.
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 posted this at 09:07 — 23rd February 2006.
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
xyphlo posted this at 19:19 — 23rd February 2006.
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 posted this at 20:56 — 23rd February 2006.
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
xyphlo posted this at 21:36 — 24th February 2006.
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.