| | |
mouseover Dropdown Menu
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2009
Posts: 2
Reputation:
Solved Threads: 0
Been trying to get a mouseover dropdown menu to work when I copy and paste the code all I get is the code where the buttons should be.When it does work I go to preview I get script errors.I am new to this html thing I am using frontpage 2002.This is the code I am trying to use and putting it in the body.I am changing the ahref with my stuff. Thanks
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <LINK REL="StyleSheet" HREF="menu.css"> <script language="javascript" src="menu.js"></script> </head> <body> <h1 align="center">Main Heading</h1> <table class="navbar" width="800"> <tr> <td class="menuNormal" width="160" onmouseover="expand(this);" onmouseout="collapse(this);"> <p>Menu 1</p> <div class="menuNormal" width="155"> <table class="menu" width="155"> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 1</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 2</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 3</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 4</a> </td></tr> </table> </div> </td> <td class="menuNormal" width="160" onmouseover="expand(this);" onmouseout="collapse(this);"> <p>Menu 2</p> <div class="menuNormal" width="155"> <table class="menu" width="155"> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 1</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 2</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 3</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 4</a> </td></tr> </table> </div> </td> <td class="menuNormal" width="160" onmouseover="expand(this);" onmouseout="collapse(this);"> <p>Menu 3</p> <div class="menuNormal" width="155"> <table class="menu" width="155"> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 1</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 2</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 3</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 4</a> </td></tr> </table> </div> </td> <td class="menuNormal" width="160" onmouseover="expand(this);" onmouseout="collapse(this);"> <p>Menu 4</p> <div class="menuNormal" width="155"> <table class="menu" width="155"> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 1</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 2</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 3</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 4</a> </td></tr> </table> </div> </td> <td class="menuNormal" width="160" onmouseover="expand(this);" onmouseout="collapse(this);"> <p>Menu 5</p> <div class="menuNormal" width="155"> <table class="menu" width="155"> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 1</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 2</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 3</a> </td></tr> <tr><td class="menuNormal"> <a href="page.htm" class="menuitem">Item 4</a> </td></tr> </table> </div> </td> </tr> </table> </body> </html>
Last edited by Tekmaven; Jul 2nd, 2009 at 9:16 pm. Reason: added code | Mod Edit: Code Tags
I'm seeing where you classified what tr's will be displayed, but can you show me what script your using (menu.js) and any css you might be using?
My last post I can't seem to erase...
This may be something to check out.. http://javascript-array.com/
My last post I can't seem to erase...
This may be something to check out.. http://javascript-array.com/
Last edited by PsychicTide; Jul 2nd, 2009 at 9:36 pm.
The only hope is to help and not hinder...
![]() |
Similar Threads
- how can i display data in textbox from choosen dropdown menu? (VB.NET)
- Today's Posts added to navigation dropdown menu (DaniWeb Community Feedback)
- PHPbb - Dropdown menu Issue (PHP)
- Simple DropDown Menu? (ASP.NET)
- Dropdown menu (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: need help to my css horizontal menu with javascript for IE
- Next Thread: Get the Height of Available Window Space with Javascript
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array beta box browser captchaformproblem cart checkbox child close codes column css date debugger decimal dependent design disablefirebug dom download editor element embed engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html ie7 ie8 iframe index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming prototype redirect runtime safari scale scriptlets scroll search security select shopping size software unicode w3c web window windowofwords wysiwyg \n





