<html>
<head>
    <style>
        img { margin-left: 50px; width: 100px; height: 100px; background-color: rgb(255,0,0); }
        img::selection { background-color: rgb(0,195,0); }
    </style>
</head>
<body onload="getSelection().setBaseAndExtent(q.parentNode, 0, q.parentNode, 3)">
    <div style="padding-top: 50px;">
        <img id="q">
    </div>
</body>
</html>
