Perfect. FYI, the reason you don't need any extra code is because you're resetting it every time the page loads (in the control tag).
Cheers, Peter -----Original Message----- From: Karen Kungowski [mailto:[EMAIL PROTECTED] Hey thanks again! Didn't need any other code. It seems to remove the OnMouseOut just for the instance the link button is clicked. I didn't need any fancy footwork to sync up with all the other things going on. Karen --- Peter Brunone <[EMAIL PROTECTED]> wrote: > > Hi Karen, > > How about adding on Onclick event handler sub to > the linkbutton? > In the sub that you specify, try > > lnkEmail.Attributes.Remove("onmouseout") > > ...and you should be in business. > > Cheers, > > Peter > > -----Original Message----- > From: Karen Kungowski [mailto:[EMAIL PROTECTED] > > <asp:linkbutton ID="lnkEmail" runat="server" causesvalidation="False" > BackColor="Transparent" Font-Size="7.5pt" > EnableViewState="false" > onmouseover="this.style.borderBottom='0.2cm GROOVE > RED'" > onmouseout="this.style.borderBottom='Transparent'">Email</asp:linkbutton > > > > But when I add this code to a link button that > reloads itself(same > page), I want it to keep the "onmouseover" > characteristics. Changing the > CSS class does that, but the page reloads, the mouse > slides off the link > button, and the "OnMouseOut" fires and takes off the underline that I > wanted to keep. > > In other words, a user clicks on "TodayTommorow", > the > link gets underlined by "OnMouseOver" the page > reloads > with TodayTomorrow dates, underlines the > "TodayTommorrow" link button, but then the mouse > moves > off and the link is no longer underlined. > > Scrathing Head ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> 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/