|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi All,
I really need your suggestions in making my navigation system effective. I maintain a website with over 1k pages. The website has a drop-down navigation which is in all of the pages. The navigation is created using the CSS( <UL> and <LI> ). The navigation items are updated regularly. So what I did is, I pasted the navigation part into a Javascript called menu.js. So what the Javascript has is document.write('menu items'). Now I just call the menu.js on top of all pages. So whenever changes is needed, I just update the menu.js. So the navigation gets updated in all the pages. Is this a right way to do. I see many sites having the navigation in HTML itself. But my problem is whenever I make changes to the navigation, I need to upload all the files to my server which is time consuming. And I am little lazy to update the 1k pages And I am aware that having navigation inside a Javascript won't do good to Google. So is there any other way to have a better navigation system? Thanks a lot in advance!!! |
|
||||
|
Completely agree
Code:
<ul><li> Menu 1 item here with CSS styling. </li>................................................................... <li> Menu n item here with CSS styling. </li></ul> There is a Norwegian site (shall I tell about it - a competitor of my menu system. WPW members are the bosses, so here it is: bMenu "bMenu focuses on navigation technology which improves and standardizes navigation on web, Intranets and mobile terminals. Search has lately been seen as the only way to navigate Internet. bMenu is patent pending (US, PCT, NO) technology which improves access to web content and gives a much faster and better overview than traditional navigation or search results. It also increases page views for advertising sites and sales for e-commerce sites. Today we have some of the major portals in Norway as beta customers. Behind bMenu you will find some of the top people within programming and development with experience from companies like Fast, Yahoo and Opera. Investor is Alliance Venture. The backbone of the technology is built on Fast’s technology platform. bMenu is now located in Norway and New York and is establishing office in San Francisco". It uses the Fast engine, scan web sites for content that is automatically added to the menu system. You can scan a Chinese site and automatically produce English menus on your site.) There is a free and paid versions. The most advanced are for companies.
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 04-10-2008 at 11:24 AM. |
|
|||
|
Simply replacing menu.js to update your navigation is also a problem because of browser caching. Visitors returning to your site may reuse a cached copy of menu.js and will not see your menu changes.
Paul Cormier |
|
||||
|
You should only use HTML + CSS.
Many use a ul / li structure. This is the right way for SE spiders to browse your menus, and therefore your website. Then you can add DHTML effects (drop down menus, progressive transparency and anything else) using with Javascript - but the whole menu structure should be readable to SE spiders, what means : HTML / CSS only. JP
__________________
www.net-createurs.com [ french only website sorry ! ] |
|
|||
|
The CSS vs JScript issue aside, if you have 1000+ pages and you're needing to change things regularly, you should really be putting your menu in an "include" file of some kind. You can do this with most servers that let you put up .php, .asp or .shtml pages.
This way, you change one central file and it flows through the whole site. That combined with your CSS menus would give the best of both worlds. Cheers, Niggles
__________________
------------------------------------------------- World Music World - bringing the World's Folk Music Cultures Together http://www.worldmusicworld.com/ ------------------------------------------------- |
|
||||
|
You can also include the actual link HREF tags in a style sheet? I wasnt aware of that capability.
If you want the menu to be the same on every page you should use include files -this is very easy to do in PHP, ASP, perl or even SHTML you create one HTML file then include it into you 1000 files. you would still use CSS as described above
__________________
-Webmaster Wes | Don't go and misunderestimate me! Graphic Design Jobs | Web Design | Ninja Freelance | Ancient Ninja Wisdom |
|
||||
|
I just wrote an article about this lately. Though the article is specific to a js menu in Wordpress, the reasons for not using this type of menu are pertinent to anyone using or considering using javascript menus.
http://kickasswebdesign.com/wordpres...ibility-no-no/ Google Webmaster Guidelines has this to say: "While Googlebot is great at understanding the structure of HTML links, it can have difficulty finding its way around sites which use JavaScript for navigation. We’re working on doing a better job of understanding JavaScript, but your best bet for creating a site that’s crawlable by Google and other search engines is to provide HTML links to your content." Why can you not use php to include the menu? It renders like html and you can include the file. |
|
|||
|
First, thanks all for your suggestions.
Now, I understand the value of using CSS menus. I also think that I can try out the PHP include concept in my pages. But all my pages needs to be .php file. Right now I have all the pages as .html. Is there a way by which I can redirect all my .html file to .php file using ".htaccess"? |
|
||||
|
Yes you can write a 301 redirect in your htaccess to redirect all of your pages.
It's also advisable to be sure to have an xml sitemap for Google to see any and all changes to your website. The PHP include is a great tool, I've used it. Very convenient when adding or changing around links -- just change the one file instead of editing every page. A must-have for any website that intends to grow, unless the site is utilizing a CMS (content management system i.e. Mambo, etc)
__________________
Domain Name Registration and Website Hosting :: DesignerTrade Last edited by jawn_tech; 04-11-2008 at 04:38 AM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript Navigation Buttons. | adbart | Search Engine Optimization Forum | 9 | 01-08-2007 09:48 PM |
| Javascript Navigation & SEO | mktgbill | Search Engine Optimization Forum | 15 | 07-17-2006 12:20 AM |
| Navigation Change from JavaScript to ? | incrediblehelp | Search Engine Optimization Forum | 11 | 03-21-2006 06:09 PM |
| Javascript Pop Up Navigation and Robots? | peak | Search Engine Optimization Forum | 5 | 01-14-2004 02:12 AM |
| JavaScript for navigation useability/W3C questions | iainrstewart | Graphics & Design Discussion Forum | 5 | 10-22-2003 07:56 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |