I've tried many methods on how to resolve this issue, but I can't seem to find a solution, so it's time to ask help from more experienced people. Basically what I want is for an image to change when I hover over its 'div' (the box) that the img is in. Have a look at the code:
<!DOCTYPE html>
<html>
    <head>
        <style>
            body {
            background: grey;
            }
            #box {
                margin: 0 auto;
                width:  300px;
                height: 300px;
                background: blue
            }
            #box img {
                display: block;
                margin: 0 auto;
                padding-top: 75px;
            }
        </style>
        <meta charset="utf-8">
    </head>
    <body>
        <a href="#">
            <div id="box">
                <img src="registration_icon_white.png" onmouseover="src='registration_icon_black.png'" onmouseout="'registration_icon_black.png'">
            </div>
        </a>
    </body>
(the images are the same, just with different colors)
Any help would be appreciated, thanks.
 
     
     
    