HyperLink OnMouseOver

BlackSteer

Newcomer
Joined
Jun 22, 2004
Messages
3
Hi,


I have some Hyperlinks web controls on a usercontrol web form.
On the Load_Page event i added:
Code:
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 ;)
 
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 ?
 
Back
Top