Purchase Advertising On AWT
 Upload & Sell Your Software
 Upload & Sell Your eBook
 Enter The AWT Control Panel  Contact Applied Web Tools
 Sell Your eBook @ The PDF Store  Password Troubles? Click Here!
Knowledge Center
Want to write for Applied Web Tools? Send your Writer's Query to
Editor@AppliedWebTools.net for details.
HTML
Reference
&
Tutorial
CSS
Reference
&
Tutorial
DOM
Reference
&
Tutorial
JavaScript
Reference
&
Tutorial
50+ Programming Examples
Use HTML, CSS, DOM & JavaScript Together
Misc. Essays & Documents
You'll Find Just About Anything In Here
50+ Web Page Constructions
Learn the Art of Using HTML, CSS, DOM & JavaScript Together
 Changing Background Colors
 Event Triggering With onLoad
 Disabling The Right Click
 DOM Driven Color Changing
 Switching Images
 innerHTML Attribute Access
 Change With innerHTML
 Changing Positions
 Change Position With onMouseMove
 Change Text Position
 Interactivity Skills
 Type-writing A Message
 Auto-changing Text Size
 Making Text Scroll
 Blinking Text
 Simple Form Authentication
 Change Background Color Of An INPUT
 Change Text Color Of An INPUT
 Change Background Image Of An INPUT
 Select All Checkboxes
 Select Color Of The Submit Button
 Change Text Color Of A Submit Button
 Insert Background Image To A Button
 Change Color Of Drop Down List
 Change Text Color Of A Drop Down List
 Change Color Of A TEXTAREA
 Change The Text Color Of A TEXTAREA
 Insert An Image Into A TEXTAREA
 Change The Size Of An Image
 Change The Source Of An Image
 Change The Position Of An Image
 Change The Background Image
 Moving Images Around The Page
 Drag & Drop An Image
 A Simple Image Viewer
 A Shaking Image
 A Digital Clock
 Drop Down List Link
 Top Drop Down Menu
 Always On Top Menu
 Inset Border Buttons
 A Description Generating Menu
 An Image Generating Menu
 A Horizontal Sliding Menu
 A Click Horizontal Sliding Menu
 Returning Cursor Co-ordinates
 Making Text Follow The Cursor
 Attaching An Image To The Cursor
top drop down

This simple drop down menu uses CSS rules and the hidden and visible attributes of the style object. The menu is always there – it’s just set to hidden. When you mouse over it, the property is changed to visible and you see the menu. Simple.

We use the getElementById() method to access the page properties and change only the hidden or visible property. Use a menu as simple or as complicated as needed. It doesn’t really matter. Change its appearance through the use of simple CSS rules. I’ve included 8 rules, and there are many more than that.

<html>
<head>

<style>
body{font-family:arial;}
table{font-size:80%;background:black}
a{color:black;text-decoration:none;font:bold}
a:hover{color:#606060}
td.menu{background:lightblue}
table.menu {
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>

<script type="text/javascript">
function showmenu(elmnt) {
document.getElementById(elmnt).style.visibility="visible";
}

function hidemenu(elmnt) {
document.getElementById(elmnt).style.visibility="hidden";
}
</script>

</head>

<body>

<table width="100%">
<tr bgcolor="#FF8080">
<td onmouseover="showmenu('tutorials')" onmouseout="hidemenu('tutorials')">
<a href="/default.asp">Tutorials</a><br />
<table class="menu" id="tutorials" width="120">
<tr>
<td class="menu"><a href="page.html">List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item </a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item </a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item </a></td>
</tr>
</table>
</td>
<td onmouseover="showmenu('scripting')" onmouseout="hidemenu('scripting')">
<a href=" page.html ">Scripting</a
<table class="menu" id="scripting" width="120">
<tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr>
</table>
</td>
<td onmouseover="showmenu('validation')" onmouseout="hidemenu('validation')">
<a href="/site/site_validate.asp">Validation</a>
<table class="menu" id="validation" width="120">
<tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr><tr>
<td class="menu"><a href=" page.html "> List Item</a></td>
</tr>
</table>
</td>
</tr>
</table>

</body>
</html>


The list items are displayed as they appear within the table given. Notice that are a few nested tables used. You can do this in any complexity you need and include any valid HTML coding using any formatting options. You can even put images and/or a form with many input elements in each drop down list.
I do not employ cookies or tracking devices of any kind