利用 onmouseover onmouseout 事件

解决方案 »

  1.   

    <DIV>
    <P onmouseover="this.style.color='red'"
       onmouseout="this.style.color='black'">
    Move the mouse pointer over this text, then move it elsewhere in the 
    document. Move the mouse pointer over this text, then move it 
    elsewhere in the document.   
    </DIV>
      

  2.   

    <span id="Submit1" style="font-size: 12px;font-weight: bold;color: #000066;cursor: hand;"
     onclick="cmd1Click();">SAVE</span>其中的cursor: hand,你可以再找其它的形状
    auto Default. Browser determines which cursor to display based on the current context.
    crosshair Simple cross hair.
    default Platform-dependent default cursor; usually an arrow.
    hand Hand.
    move Crossed arrows indicating something is to be moved.
    *-resize Arrow indicating an edge is to be moved; the asterisk (*) can be N, NE, NW, S, SE, SW, E, or W&iexcl;&ordf;each representing a compass direction.
    text Editable text; usually an I-bar.
    wait Hourglass or watch indicating that the program is busy and the user should wait.
    help Arrow with question  indicating Help is available.