Hello,
I am very new to javascript and vb. There is a piece of code that I need to change. It's basically a menu for an application called menu.asp. I need to check the condition so that when a certain user logs in, for example user1, it will display what i have below. But if it's user2 or user3, the forum link shouldn't display. How can I set a condition for this in javascript? Or would I have to do it w/the vb code? Can someone give me an example? I know I'm being very vague since I'm new to all this coding. Please let me know what other info you need.
Thanks in advance
</tr>
<tr>
<td valign="top">
<table border="0" class="backdrop" cellpadding="0" cellspacing="0" width="100%">
<td valign="middle" align="right">
<a style="cursor:hand;" href="javascript:GetHelp()" class="TabRowText">Help</a><font color="red"> - </font>
<a style="cursor:hand;" href="javascript:Forum()" class="TabRowText">Forum</a>
</td>
</table>
</td>
</tr>
</table>
</body>
</html>
I am very new to javascript and vb. There is a piece of code that I need to change. It's basically a menu for an application called menu.asp. I need to check the condition so that when a certain user logs in, for example user1, it will display what i have below. But if it's user2 or user3, the forum link shouldn't display. How can I set a condition for this in javascript? Or would I have to do it w/the vb code? Can someone give me an example? I know I'm being very vague since I'm new to all this coding. Please let me know what other info you need.
Thanks in advance
</tr>
<tr>
<td valign="top">
<table border="0" class="backdrop" cellpadding="0" cellspacing="0" width="100%">
<td valign="middle" align="right">
<a style="cursor:hand;" href="javascript:GetHelp()" class="TabRowText">Help</a><font color="red"> - </font>
<a style="cursor:hand;" href="javascript:Forum()" class="TabRowText">Forum</a>
</td>
</table>
</td>
</tr>
</table>
</body>
</html>