J
Jim in Arizona
using ASP.NET/VB.NET 2.0
I can change the text color of an ASP Button object on mouse
rollover/rollout by doing this (in page_load)
btnMyButton.Attributes.Add("onmouseover", "this.style.color='Yellow'")
btnMyButton.Attributes.Add("onmouseout", "this.style.color='White'")
But how can I change the text on rollover? I don't understand the javascript
DOM enough to know what to do. I did try:
btnMyButton.Attributes.Add("onmouseover", "this.text='My New Text'")
And Tried
btnMyButton.Attributes.Add("onmouseover", "this.style.text='My New Text'")
Of course, none of these do anything.
TIA,
Jim
I can change the text color of an ASP Button object on mouse
rollover/rollout by doing this (in page_load)
btnMyButton.Attributes.Add("onmouseover", "this.style.color='Yellow'")
btnMyButton.Attributes.Add("onmouseout", "this.style.color='White'")
But how can I change the text on rollover? I don't understand the javascript
DOM enough to know what to do. I did try:
btnMyButton.Attributes.Add("onmouseover", "this.text='My New Text'")
And Tried
btnMyButton.Attributes.Add("onmouseover", "this.style.text='My New Text'")
Of course, none of these do anything.
TIA,
Jim