Verify your user in ASP and declare a boolean variable that holds the
verification e.g 'blnMember = True'
Then wrap an ASP condition around your javascript
eg <%If blnMember = True then%> onmousemove="ShowMenu('1000')"
onmouseout="HideMenu('1000')"<%End If%>
Your javascript will only be sent to the client if the user is verified as a
member----- Original Message ----- From: "phuong phuong" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, March 21, 2005 9:31 AM Subject: [AspClassicAnyQuestionIsOk] help me about ASP and Java I have a drop-down menu and I want it only show link when member logged in. And I don't know how to do that? My web is written by ASP and the menu is written by JavaScript. Here is my drop-down menu: <script language="javascript"> function ShowMenu(Item) { document.getElementById(Item).style.visibility = 'Visible'; } function HideMenu(Item) { document.getElementById(Item).style.visibility = 'Hidden'; } function MenuSelect(Item) { document.getElementById(Item).style.backgroundColor = '#d5e7f3'; } function MenuDeselect(Item) { document.getElementById(Item).style.backgroundColor='#F5F5DC'; } </script> <body> <table id="1000" style="background- color:#F5F5DC;top:133px;left:426px;position:absolute;visibility:hidde n; height:40px; width:95px" onmousemove="ShowMenu('1000')" onmouseout="HideMenu('1000')"> <tr> <td id="ht" style="cursor:hand;font-size:11pt" onmouseover="MenuSelect(id)" onmouseout="MenuDeselect(id)" onclick="location.href='http://localhost/tttn/haithinh.asp'" height="19"> <p align="center"><font face="Verdana" size="2">�i Hải Thịnh</font></td> </tr> <tr> <td id="qs" style="cursor:hand;font-size:11pt" onmouseover="MenuSelect(id)" onmouseout="MenuDeselect(id)" onclick="location.href='http://localhost/tttn/quansu.asp'"> <p align="center"><font face="Verdana" size="2">Tập qu�n sự</font></td> </tr> </table><div align="left"> I want my menu only show links to the members who logged in. I wrote my web by ASP. I don't know how to do that. Can you show me how to do? I'm starting to learn ASP and web design --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! [Non-text portions of this message have been removed] Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
