| | |
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 ajaxcode ajaxexample ajaxhelp animate array automatically beta box bug calendar cart checkbox class codes column cookies createrange() css cursor date debugger decimal design dom download dropdown editor element embed enter error explorer firefox focus frameworks getselection google gwt hint html htmlform ie7 iframe images index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math menu microsoft mimic mp4 object onmouseover parent paypal php player position post problem programming progressbar prototype redirect regex runtime safari scale scriptlets search select session shopping size sql text textarea toggle variables w3c website window windowofwords windowsxp wysiwyg \n





