Jim said:
(e-mail address removed) wrote: [...]
Is it possible to make a cursor into an hourglass over a drop down?
If by 'drop down' you mean an HTML select element, yes. You can use a
'wait' cursor over all select elements using CSS:
<style type="text/css">
select {cursor: wait;}
</style>
You can use selectors to change the cursor based on the element's id or
class attributes. You can also use in-line styles:
<select style="cursor: wait;" ... >
[...]
The script above is equivalent to using the above.
OP - the better approach to this is not to change every cursor -
that's really, really slow - just add a mousemove handler to the page
and change the cursor of the element under the cursor, much more
efficient.
Do you mean something like:
<script type="text/javascript">
function doWait(e){
var tgt = e.target || e.srcElement;
if (tgt && tgt.tagName && tgt.style){
if ('select' == tgt.tagName.toLowerCase()){
tgt.style.cursor = 'wait';
} else {
tgt.style.cursor = 'normal';
}
}
}
</script>
<body onmouseover="doWait(event);"> ... </body>
I think CSS provides a much more elegant solution.