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

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.

you can try ajax.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.