• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

Need to make a mouse over menu

Hello,

I have a website I am working on.

My main page links are buttons.

What I would like is for the submenu to be hidden until you click on that main button.

I think this is called a mouse over.

I only know straight html, I have seen this done with java & css, but I have never used those before.  I need to do this is the simplest way possible.

Here is my code:

<ul id="nav">


<table width="100%" border="0" cellspacing="0" cellpadding="0" height="20">  
<trvalign="left"><tr align=center valign=top>


<td width="2" height="20"></td>
<td bgcolor="" width="20%" height="20"> <vertical-align: super>
<div align="left"><font face="Arial" size="1" color="#000000">
<a href="#"><IMG SRC="Buttons/btn_01_on.gif" BORDER="0" Width="" Height=""></a>
      <ul>
                <dl><a href="#" STYLE="TEXT-DECORATION: NONE">Management Team</a></dl>
                <dl><a href="#" STYLE="TEXT-DECORATION: NONE">Business Philosophy</a></dl>
                <dl><a href="#" STYLE="TEXT-DECORATION: NONE">History</a></dl>
            <dl><a href="#" STYLE="TEXT-DECORATION: NONE">Portfolio</a></li></dl>
                  
</ul>
</div>
</td>

<td width="2" height="20"></td>
<td bgcolor="" width="20%" height="20">
<div align="left"><font face="Arial" size="1" color="#000000">
<a href="#"><IMG SRC="Buttons/btn_02_on.gif" BORDER="0" Width="" Height="" vertical-align: super></a>
      <ul>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Inventors</a></dl>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Institutions</a></dl>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Companies</a></dl>
</ul>
</div>
</td>

<td width="2" height="20"></td>
<td bgcolor="" width="20%" height="20">
<div align="left"><font face="Arial" size="1" color="#000000">
<a href="#"><IMG SRC="Buttons/btn_03_on.gif" BORDER="0" Width="" Height=""></a>
      <ul>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Inventor</a></dl>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Institutions</a></dl>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Companies</a></dl>
</ul>
</div>
</td>

<td width="2" height="20"></td>
<td bgcolor="" width="20%" height="20">
<div align="left"><font face="Arial" size="1" color="#000000">
<a href="#"><IMG SRC="Buttons/btn_04_on.gif" BORDER="0" Width="" Height=""></a>
      <ul>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">Events</a></dl>
                <dl><a href="#"STYLE="TEXT-DECORATION: NONE">DRC Archive</a></dl>
                
</ul>
</div>
</td>

<td width="2" height="20"></td>
<td bgcolor="" width="20%" height="20">
<div align="left"><font face="Arial" size="1" color="#000000">
<a href="#"><IMG SRC="Buttons/btn_05_on.gif" BORDER="0" Width="" Height=""></a>
      
</ul>
</div>
</td>

</ul>

Thank you.
0
GDoucette
Asked:
GDoucette
  • 3
1 Solution
 
YZlatCommented:
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="20">
                  <tr>
                        <td onmouseover="document.getElementById('first').style.visibility = 'visible';" onmouseout="document.getElementById('first').style.visibility = 'hidden';" align="middle" width="100px">
                              <a href="#"><IMG SRC="Buttons/btn_01_on.gif" BORDER="1" Width="" Height=""></a><br>
                              <table id="first" width="100%" style="visibility:hidden;">
                                    <tr>
                                          <td><a href="#" STYLE="TEXT-DECORATION: NONE">Management Team</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">Business Philosophy</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">History</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">Portfolio</a></td>
                                    </tr>
                              </table>
                        </td>
                        <td onmouseover="document.getElementById('second').style.visibility = 'visible';" onmouseout="document.getElementById('second').style.visibility = 'hidden';" align="middle" width="100px">
                              <a href="#"><IMG SRC="Buttons/btn_02_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                              <table id="second" width="100%" style="visibility:hidden;">
                                    <tr>
                                          <td><a href="#" STYLE="TEXT-DECORATION: NONE">Inventors</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">Institutions</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">Companies</a></td>
                                    </tr>
                              </table>
                        </td>
                        <td onmouseover="document.getElementById('third').style.visibility = 'visible';" onmouseout="document.getElementById('third').style.visibility = 'hidden';" align="middle" width="100px">
                              <a href="#"><IMG SRC="Buttons/btn_03_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                              <table id="third" width="100%" style="visibility:hidden;">
                                    <tr>
                                          <td><a href="#" STYLE="TEXT-DECORATION: NONE">Inventors</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">Institutions</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">Companies</a></td>
                                    </tr>
                              </table>
                        </td>
                        <td onmouseover="document.getElementById('fourth').style.visibility = 'visible';" onmouseout="document.getElementById('fourth').style.visibility = 'hidden';" align="middle" width="100px">
                              <a href="#"><IMG SRC="Buttons/btn_04_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                              <table id="fourth" width="100%" style="visibility:hidden;">
                                    <tr>
                                          <td><a href="#" STYLE="TEXT-DECORATION: NONE">Events</a></td>
                                    </tr>
                                    <tr>
                                          <td>
                                                <a href="#" STYLE="TEXT-DECORATION: NONE">DRC Archive</a></td>
                                    </tr>
                              </table>
                        </td>
                        <td align="middle" width="100px">
                              <a href="#"><IMG SRC="Buttons/btn_05_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                        </td>
                  </tr>
            </table>
0
 
GDoucetteAuthor Commented:
Thanks for the mouseover,

but what happened to my links.  They are no longer lined up, and the submenus are way over to the right?

Thanks,
0
 
YZlatCommented:
just line them up the way you want to using <div>
0
 
YZlatCommented:
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="20">
               <tr>
                    <td onmouseover="document.getElementById('first').style.visibility = 'visible';" onmouseout="document.getElementById('first').style.visibility = 'hidden';" align="middle" width="100px">
                         <a href="#"><IMG SRC="Buttons/btn_01_on.gif" BORDER="1" Width="" Height=""></a><br>
                         <div align="left"><font face="Arial" size="1" color="#000000">

                  <table id="first" width="100%" style="visibility:hidden;">
                              <tr>
                                   <td><a href="#" STYLE="TEXT-DECORATION: NONE">Management Team</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">Business Philosophy</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">History</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">Portfolio</a></td>
                              </tr>
                         </table>
</div>
                    </td>
                    <td onmouseover="document.getElementById('second').style.visibility = 'visible';" onmouseout="document.getElementById('second').style.visibility = 'hidden';" align="middle" width="100px">
                         <a href="#"><IMG SRC="Buttons/btn_02_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
<div align="left"><font face="Arial" size="1" color="#000000">

                         <table id="second" width="100%" style="visibility:hidden;">
                              <tr>
                                   <td><a href="#" STYLE="TEXT-DECORATION: NONE">Inventors</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">Institutions</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">Companies</a></td>
                              </tr>
                         </table>
</div>
                    </td>
                    <td onmouseover="document.getElementById('third').style.visibility = 'visible';" onmouseout="document.getElementById('third').style.visibility = 'hidden';" align="middle" width="100px">
                         <a href="#"><IMG SRC="Buttons/btn_03_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                         <div align="left"><font face="Arial" size="1" color="#000000">

<table id="third" width="100%" style="visibility:hidden;">
                              <tr>
                                   <td><a href="#" STYLE="TEXT-DECORATION: NONE">Inventors</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">Institutions</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">Companies</a></td>
                              </tr>
                         </table>
</div>
                    </td>
                    <td onmouseover="document.getElementById('fourth').style.visibility = 'visible';" onmouseout="document.getElementById('fourth').style.visibility = 'hidden';" align="middle" width="100px">
                         <a href="#"><IMG SRC="Buttons/btn_04_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                        <div align="left"><font face="Arial" size="1" color="#000000">

 <table id="fourth" width="100%" style="visibility:hidden;">
                              <tr>
                                   <td><a href="#" STYLE="TEXT-DECORATION: NONE">Events</a></td>
                              </tr>
                              <tr>
                                   <td>
                                        <a href="#" STYLE="TEXT-DECORATION: NONE">DRC Archive</a></td>
                              </tr>
                         </table>
</div>
                    </td>
                    <td align="middle" width="100px">
                         <a href="#"><IMG SRC="Buttons/btn_05_on.gif" BORDER="1" Width="" Height="" vertical-align:super></a><br>
                    </td>
               </tr>
          </table>
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now