•  

    This example demonstrates the difference between onmousemove, onmouseleave and onmouseout.

    The onmousemove event occurs every time the mouse pointer is moved over the div element.

    The mouseleave event only occurs when the mouse pointer is moved out of the div element.

    The onmouseout event occurs when the mouse pointer is moved out of the div element, and when it leaves its child elements (p and span).

    onmousemove:
    Mouse over and leave me!

    onmouseleave:
    Mouse over and leave me!

    onmouseout:
    Mouse over and leave me!

     
     

  •  

    Please input a number between 1 and 10:

     

    In this example, we search for the first div element in the document. Then, if the div element has an id of "myDIV" - change its font size.


    I am a DIV element
    I am also DIV element
     

  •  

    I'm thinking of a letter. Guess which: a, b, c, d or e?

     a


  • Click the light bulb to turn on/off the light.


  • Animation of background-color

    Gradually change the background-color from red to blue:

     

    Note: CSS Animations do not work in Internet Explorer 9 and earlier versions.






    Suivre le flux RSS des articles
    Suivre le flux RSS des commentaires