need some help.. i want the bin to hide on load and i have a draggable div, so when i drag the div the bin should show and when i leave the div the bin should hide again?
<html>
<head>
<style>
.box{
border: 1px solid black;
}
</style>
<script>
window.onload = function() { document.getElementById('myDIV').style.display = 'none'; };
function showImg(){
var x = document.getElementById('myDIV');
if (x.style.display === 'none') { x.style.display = 'block'; }
else { x.style.display = 'none'; }
}
</script>
</head>
<body>
<div id="show" onclick="showImg()" class="box">
when this div is select and drag the bin should be shown
</div>
<div id="myDIV">
<img src="img/upload.png"/>
</div>
</body>
</html>