BlackSteer Posted June 22, 2004 Posted June 22, 2004 Hi, I have some Hyperlinks web controls on a usercontrol web form. On the Load_Page event i added: LinkQueries.Attributes("onMouseOver") = "document.getElementById('LinkQueries').style.color = 'red'" LinkQueries.Attributes.Add("onMouseOut", "document.getElementById('LinkQueries').style.color = 'blue'") so.. when ever the user going over the link it goes red, and goes blue when it moves away. I drop down the usercontrol on a second web form. My problem is that everytime i'm going over the link with the mouse i get nothing, except to an 'error!' msg in window status. I know how to make it work (change color from red to blue) if i use hyperlink in my own web form (with out using the usercontrol). What is the problem? Thanks ;) Quote
Arch4ngel Posted June 22, 2004 Posted June 22, 2004 I have a solution instead... Use a CSS. a:hover will permit you to change style while the mouse is over. What do you think about that ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Moderators Robby Posted June 23, 2004 Moderators Posted June 23, 2004 Also, you can add class names in your CSS file so that not all your A tags have the same look. Quote Visit...Bassic Software
BlackSteer Posted June 23, 2004 Author Posted June 23, 2004 Also' date=' you can add class names in your CSS file so that not all your A tags have the same look.[/quote'] Thank you both. :rolleyes: Quote
Arch4ngel Posted June 23, 2004 Posted June 23, 2004 Thanks for the precision ! was a little bit tired too yesterday lollll :p Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.