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
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