Click to See Complete Forum and Search --> : javascript doubts
saju_m
01-07-2003, 08:04 PM
how to do th following so that it will work with both IE and Netdcape 6.1
1. how to increase the height of a textbox in runtime using javascript
2. how to change the mouse cursor in runtime
3. how to set tab orders in textfields
Thanking You
Zach Elfers
01-07-2003, 08:25 PM
Actually, all of the above can be done without using JavaScript and work best the way I will give them:
1) To change the height of an input text box:
<input type="text" style="height:50px;">
2) To change the mouse cursor for an element:
<element style="cursor:default;">
Istead of using default which would be an ordinary arrow, you could use many others:
wait = hourglass
default = arrow
pointer or hand = a pointing hand
crosshair = two crossed lines. It looks like a target sign.
text = the text cursor
3) To set the tabindex of an element:
<input type="text" tabindex="n">
n = number from 0 to somewhere in the 320,000's. This would be the order the user would tab to the element. If one element had a tab order of 1, it would be the second element tabbed to (The first one would be the location bar -- there is no way around this). If another element had an index of 2, it would be the next one tabbed to and so on.
Stefan
01-08-2003, 09:30 AM
Originally posted by Zach Elfers
2) To change the mouse cursor for an element:
<element style="cursor:default;">
Istead of using default which would be an ordinary arrow, you could use many others:
The full (and correct) list can be found here :)
http://www.w3.org/TR/REC-CSS2/ui.html#propdef-cursor