CSS: Change Image on :hover

by MythOfEchelon

HTML

<!DOCTYPE html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style type="text/css" rel="stylesheet">
            div {
                cursor: pointer;
            }
            
            #buttonElement1 { /*"Standard" view*/
                width: 300px;
                height: 300px;
                background-image: url("http://www.clker.com/cliparts/9/1/5/2/119498475589498995button-red_benji_park_01.svg.med.png");
            }
            
            #buttonElement1:hover { /*Mouse-over view*/
                background-image: url("http://www.clker.com/cliparts/a/9/3/e/1194984754884631372button-blue_benji_park_01.svg.med.png");
            }
            
            /*You can also make of use :link and :visited (if it is a hyperlink), and :active and :focus for all other elements*/
        </style>
    </head>
    
    <body>
        <div id="buttonElement1"></div>
    </body>
</html>