Welcome to WebmasterWorld Guest from

Forum Moderators: martinibuster

Message Too Old, No Replies

DHTML Menus on a site with AdSense

Choosing between javascript and CSS based

2:31 am on Dec 28, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 23, 2002
votes: 0

I'm completely redoing my godawfully ugly blog... and considering making it no-columns... just one pane, but with a DHTML menu on top enabling people to browse a topic, subscribe, see my blogroll, contact me, etc... all the typical bloggy goodness, but basically made subordinate to the blog content.

The blog content AND AdSense ads, that is ;)

So here in lies my dilemma... and I think it's (hopefully) an interesting issue for Webmasters in general who are evaluating navigation options:

Do I go with a javascript (external-file) based DHTML menu or a 100% pure CSS-based menu?

Advantages of a javascript-based menu
The plethora of blog categories and other stuff is kept OFF of the page... which should at least theoretically improve SE optimizations (e.g., main blog CONTENT is higher up on the page, and a much greater percentage of the page!)

AdSense targeting is likely to be much better, since there's no navigation links to confuse the media bot (even taking into account the new'ish built-in AdSense targeting features).

More DHTML builder programs to choose from :) (few are 100% pure CSS-based, from my research so far)

Advantages of a CSS-based menu
No need for a separate site-map; the engines can follow all links right from the menu.

Easier to update stuff right via HTML (since it's all just bulleted, pure HTML lists!)

Easier to integrate on-the-fly stuff into the menu (e.g., using my blog software's listing of categories to populate the Categories menu dropdown instead of having to hand-code and change it as needed myself when there are new categories)

* * *

So there certainly seem to be MORE advantages with the pure CSS-based solution. But am I missing some issues? Are some of these considerations more important/severe than others, IYHO?


4:15 am on Dec 29, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 25, 2002
votes: 0

I use a DHTML menu but The first link above it is pure html to my sitemap.

This sends the bot to "bot food", a list of all my page links.

Seems to work well.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members