'cursor' Example : cursor : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Properties   » [  cursor  ]   
 



'cursor' Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        document.all.Layer1.style.cursor = "hand";
    }
    function function2() {
        document.all.Layer1.style.cursor = "help";
    }
    function function3() {
        document.all.Layer1.style.cursor = "wait";
    }
</script>
<div id="Layer1" 
     style="position:absolute; 
            visibility:visible; 
            width:216px; 
            height:61px; 
            background-color:#EEEEEE; 
            layer-backgroundcolor:#66FFFF; 
            border:1px none #000000; 
            z-index:1">
Move the mouse over this div element.</div>
<button onclick="function1();">Replace cursor for "hand"</button>
<button onclick="function2();">Replace cursor for "help"</button>
<button onclick="function3();">Replace cursor for "wait"</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'cursor' Syntax and Note
2.  'cursor' Possible Values
3.  'cursor' is applied to
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.