window status text
-
Does anyone know how to set the window status. I have a checkboxlist. On mouseover on any of the item in the list, the description will be displayed at the window status.
Changing the window status is easy:
window.status = 'new status';
Making it change while the drop-down list is expanded is another story. I haven't seen anything that does this. You can make it change when a value is selected, but that's all I know about. You might be able to find some sort of hack, but that might take a lot of playing around. Good luck. Michael Flanakin Web Log -
Does anyone know how to set the window status. I have a checkboxlist. On mouseover on any of the item in the list, the description will be displayed at the window status.
A quick and dirty way to do this follows (not completely tested). Not sure if there's a better way.
<div id="checkboxlist_wrapper"> <asp:checkboxlist ... /> </div> var wrapper = document.getElementById("checkboxlist_wrapper"); var checkboxen = wrapper.getElementsByTagName("input"); var input; for (var i = 0; i < checkboxen.length; i++) { input = checkboxen[i]; if (input.type == "checkbox") { input.onmouseover = showDescription; input.onmouseout = hideDescription; } } function showDescription() { // here you have to go up enough nodes to find a parent that is shared // between the radio button and it's label. not sure if that will be // one, two, or three levels. window.status = this.parentNode.innerText; } function hideDescription() { window.status = "": }
-- aaron youngpup.net