cursor move on to "menu" then i get submenu in submenu i click on one option the page will display on <div> of same page, plz help me.thanks in advance.
my code is:

<a href="#" onmouseover="javascript:test(1)" id="ss">tutor</a>
<div id="frame1"  style="position:absolute; top:120px;left:65px;" class="hide";>
<table id="itut" border="1">
<tr>
<td>
<a href="#" onclick="tutorlogin()">tutorlogin</a><br />
</td></tr><tr>
<td>
<a href="#" onclick="tutordirectory()">tutordirectory</a><br />
</td></tr>
<tr>
<td>
<a  href="#" onclick="tutorforum()">turorforum</a></td></tr></table>
</div>
<style type="text/css" media="screen">
        .show {
            display:block;
            }
        .hide{
            display:none;
        }
        .
        </style>
<script language="javascript">

function test(n)
{
    for( var i=1;i<3;i++)
    {
     document.getElementById("frame"+i).className='hide';
    if(n==i)

       document.getElementById("frame"+i).className='show';
      else
      document.getElementById("frame"+i).className='hide';
      }
      return true;

}

if i click on tutorlogin the tutorlogin.php(another page call through function) wil ldispay

Edited 3 Years Ago by mike_2000_17: Fixed formatting

Use Frames Instead of DIV

Solutions:
On the same page, lets assume you have the two frames.

First Frame: Display the Menus

Second Frame: Display the page you require.

Thanks,
Mahendra Vishwanath Billa
---------------------------------------------------------------
Please mark the thread as Solved if satifies your requirements.

This article has been dead for over six months. Start a new discussion instead.