Attributes of a listbox
-
Hey i have a issue i'm trying to work out. OK i hake a listbox(lstResults) and on load of the form I have the following setting done: lstResults.Attributes("onmouseover") = "javascript:onmouseover=alert('" & lblMessage.Text & "')" And what i'm trying to do is instead of it doing a javascript alert on the listbox, I'd like to be able to alert based on the value in the listbox being hovered over. does anyone have any ideas of how to do this? I'm sure there has to be a way to do this, but I have yet to come across anything online that talks about this type of function. any help would be greatlt appreciated. Thanks all, Chris Cotton
-
Hey i have a issue i'm trying to work out. OK i hake a listbox(lstResults) and on load of the form I have the following setting done: lstResults.Attributes("onmouseover") = "javascript:onmouseover=alert('" & lblMessage.Text & "')" And what i'm trying to do is instead of it doing a javascript alert on the listbox, I'd like to be able to alert based on the value in the listbox being hovered over. does anyone have any ideas of how to do this? I'm sure there has to be a way to do this, but I have yet to come across anything online that talks about this type of function. any help would be greatlt appreciated. Thanks all, Chris Cotton
Ok guys maybe this will make this idea a little more simple. I'm thinking about making a DIV tag in the HTML code to put in the place of the list box. Has anyone done the functionality that I'm trying to do? It seems simple enough using a DIV tag and Javascript but if anyone has had any experience doing this type of function and could help me figure out if this is a good way of getting this functionality to work, or is there any other alternative for this particular situation? Please let me know. Thanks, ccotton333