Context menus are accessed by clicking the right mouse button. Usually this displays a default context menu. Now you can create a customized context menu with the popup object.
Right-click inside this box.Creating custom menus is easy with the popup object. In the following example, the drop-down menu uses a gradient filter on each option and has a color scroll bar. Click the drop-down menu and then move the cursor over the options to see these effects.

All types of interactive message boxes can be easily created with the popup object. Click the button below.
Using the popup object, web pages can now have ToolTips that are as dynamic as the pages themselves. In the following example, the popup object's position depends on where the mouse pointer is when the ToolTip is activated. Move the cursor over the green text to display a ToolTip.
Using Custom ToolTips enhance the web experience.
[Right-click in window to view the full source code.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.