I'm looking at expandable navigation menu tools. I was hoping to get one using PHP and I see a lot of them using JS. Is there a reason why js is more often used? I wanted to avoid js as search engines don't like it - correct me as appropriate
MichaelBluejay
12:50 am on Oct 25, 2005 (gmt 0)
What do you mean "expandable navigation menu"? You mean where you mouseover or click on a menu and then a submenu appears? If yes, then you absolutely need JavaScript for this, because JavaScript interacts with your browser and allows things to be shown and hidden in a page that's already loaded. PHP and Perl on the other hand can only do their stuff by delivering a brand-new page, which must be redrawn from scratch. If you did your menu with PHP, when the user clicked a menu (s)he'd have to wait for a brand-new page to load that displayed the submenu.
Using Javascript poses no problems with search engines as long as you use regular <A href> tags for your links in the menus.
jackdack
3:08 am on Oct 25, 2005 (gmt 0)
thanks for feedback and tip about ensuring ok for search engine