Changing Mouse Cursors


Here's another good one to know: You can change the mouse cursor in the Internet Explorer with the cursor property. Here's an example that makes that browser display a hand cursor rather than the default cursor when the mouse moves over some text:

(Listing 21-13.html on the web site)
 <HTML>      <HEAD>          <TITLE>              Setting Mouse Cursors          </TITLE>      </HEAD>      <BODY>          <H1>             Setting Mouse Cursors          </H1>  <DIV ONMOUSEOVER="this.style.cursor = 'hand'"   ONMOUSEOUT="this.style.cursor = 'default'">   Change the cursor with the mouse.   </DIV>  </BODY>  </HTML> 

You can see the results in Figure 21.8.

Figure 21.8. Setting the mouse cursor.

graphics/21fig08.gif



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net