S
Selden McCabe
I have a form with a bunch of image buttons. When the user moves the mouse
over a button, I want to do two things: 1. change the Imagebutton's picture,
and 2. make another control visible.
I'm using the Imagebutton.Attributes.Add("onMouseOver","this.src =
'somepicture.jpg')
and that works fine.
I've tried some java script to change the other control's visible property
by changing is className, but that doesn't seem to work
script = "document.GetElementByID('panel1').className = 'vs1';return false;"
iBut.Attributes.Add("onMouseOver", script)
but that gives me a script error on the page when I mouseover the image
button. (I've tried it with and without the return false)
So how do I change the visibility property of a control in javascript, and
then, how do I combine two steps into one onMouseOver?
Thanks!
---Selden <--- java newbie!
over a button, I want to do two things: 1. change the Imagebutton's picture,
and 2. make another control visible.
I'm using the Imagebutton.Attributes.Add("onMouseOver","this.src =
'somepicture.jpg')
and that works fine.
I've tried some java script to change the other control's visible property
by changing is className, but that doesn't seem to work
script = "document.GetElementByID('panel1').className = 'vs1';return false;"
iBut.Attributes.Add("onMouseOver", script)
but that gives me a script error on the page when I mouseover the image
button. (I've tried it with and without the return false)
So how do I change the visibility property of a control in javascript, and
then, how do I combine two steps into one onMouseOver?
Thanks!
---Selden <--- java newbie!