Menus

M

microsoft

In asp I always use the div tags and dhtml for creating menus.
Here is the simple code (I have more complicated menus):

<table bgcolor='black' cellpadding="1" cellspacing="0" width='100%'>
<tr>
<td>
<table bgcolor="white" width="100%">
<tr>
<td>
<span class="linkSpan" id="spanAdmin" ONMOUSEOVER="showDiv()"
ONMOUSEOUT="spanAdmin.style.color ='black'">
ADMINISTRATION</span>
</td>
<td>
<div id="divAdmin" onmouseleave="divAdmin.style.display='NONE'"
style="MARGIN-TOP:-14px;DISPLAY:none;Z-INDEX:10;
MARGIN-LEFT:4px;POSITION:absolute">
<TABLE cellSpacing="1" cellPadding="2" width="150" border="0">
<TR>
<TDlink1</TD>
</TR>
<tr>
<TD>link2</TD>
</tr>
<tr>
<TD>link3</TD>
</tr>
</TABLE>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>

<script language="vbscript">

sub showDiv
spanAdmin.style.color ="red"
divAdmin.style.display=""
end sub

</script>

I would like to know how this is in asp.net? Does anybody have some simple
example.
What is using here instead of DIV tags?

Thank you,
Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top