We appreciate your visit – thanks!
close this once-only message

We hope that you are finding this resource guide useful. If you may wish to return, please bookmark this page or the .

 Email if you need help on any topic in the Guide, have suggestions and comments, or can help by reporting a page bug.

Vital resources directly to your mailbox
Like to try our twice-monthly email newsletter Web Evangelism Bulletin? It will give you a unique range of evangelism strategies and news (for Web, church, and beyond), plus webmaster and page promotion tips:



close this once-only messageClose this once-only message box
 Webmaster > DHTML menus  < YOU ARE HERE  KEY:
 FAQs
Green link = offsite page 
Blue link = site page 
 Site
 search

 Meaning
 of life?
 
Help
flag



 More about Internet Evangelism Day - the new focus day in 2006

DHTML and CSS dropdown / popout / expanding menus

Dynamic HTML (DHTML) is a mixture of HTML, Javascript, and Style Sheets which can be used (among other things) to create menus which pop out or drop down when the mouse hovers over them. These are very useful on a large website because the user can see at a glance all the pages available without having to search for them by clicking through categories. Pages which a user might never even be aware of can be instantly viewable, using a style which users of Windows and other operating systems are already very familiar with. Use of a DHTL menu will increase the number of pages visited within a site by a dramatic percentage.

a floating DHTML menu in the left-hand margin of this page. This is powered by Milonic and was chosen because:

There are a wide range of DHTML menu products available. I do not know of any comparison chart or review – if you find one, please tell us. When choosing a menu, first research carefully the features offered, the range of browsers and platforms it works in, and how/whether it 'fails safe' in older/non-compliant/Javascript-disabled browsers. Other people have recommended:

Menu issues

If you want to make a floating menu, but do not need a DHTML drop-down version, you can create a floating one using Javascript – so of course you will need a noscript version too. However, it is now possible to use CSS to create a fixed menu which does not scroll or jerk, and this is probably a better solution that a floating menu.

The CSS alternative

It is now possible to create pure CSS drop-down menus. These have big advantages, and are replacing DHTML as the menu of choice.
  1. they fail safe – even in browsers that do not support them - i.e. the first level menu remains visible, and so can be used to take people to a page with the further links for that topic
  2. they do not need Javascript to operate (except for Internet Explorer
  3. you can set as many levels as you need
  4. there is no time delay for the page, as there can be for a DHTML page which needs to process the javascript each time the page loads
On the debit side, older versions of Netscape (a vanishingly small percentage of users) don't handle these menus - but again, they fail safe here too.

However, they are an almost ideal solution, and this Guide will shortly be switching to CSS menus.

There are two solutions to a multi-level flyout menu: Suckerfish (see also this revised version: CSSCreator) and the technically more complex AdXMenu which has the advantage of being able to float over any form elements on the rest of the page, and 'double-back' or reposition a final submenu if there is not room on the page. It does need two style sheets, one javascript, and one .htc file to work, but if you understand CSS well, it offers a great menu. You can see an Adx Menu working at Internet Evangelism Day. There are a growing range of remarkable pure CSS menus in many styles at CSSPlay.

If you do not need a popout menu, but like their style, you can achieve remarkable vertical or horizontal menus using an unordered list modified with CSS: Samples with code.

There are other issues to consider in making a page easy to navigate.

What DHTML menu to choose

There are a growing number of menu scripts available – some are free to non-profits, others are pay for. Is is important to make the right choice, because there is a considerable time investment in setting up a menu to fit your site needs. Take time to view different systems working – if possible using a range of browsers and operating systems. Here are some questions to ask yourself when choosing:

 FREE AND SIMPLE: Syndicate this page's content into your site 
• Insert this page's text directly into your own website. then copy/paste (CTRL+C/CTRL+V) this Javascript code into your own page: help | example. (Please DO NOT copy the actual text of this page onto your own site: reasons.) Other options for re-use.
• Or please link to this page   • Add a Bulletin subscribe form to your site.
   Latest Bulletin:

 Add to My Yahoo! RSS feed


 Bookmark: this page | Web Evangelism Guide Overview    Link to this page?    Free newsletter    Free content/permissions        Poster    Page update alert  

© Dec 2008 Web Evangelism Guide   Contact us   Sitemap   Privacy   About us   Meaning of life

Bible Toolbox


More tools


BSafe filtering graphic

Gospelcom.net graphic
Printed from Web Evangelism Guide © 2008
Can be freely reproduced in print in any non-profit situation with attribution to web-evangelism.com. This page content can also be inserted into your own web-page by copying a simple Javascript insert code into your page - explained in the online version of this page: guide.gospelcom.net/resources/
Please do not copy the text of this page onto your own web-page - search engines do not like hard-copy duplicate content on different sites.
To receive the twice-monthly email newsletter Web Evangelism Bulletin, visit the Guide.