I would like to create a small bar in the left side of the browser window which tracks the mouse Y-position and follows the mouse. So far, no problems.
But now I would like to stop the the div from offsetting when the mouse is hovered over the div to make it also possible to click on the content the div just revealed.
I've made a fiddle to make myself clear
http://jsfiddle.net/UXWp6/
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
$(document).bind('mousemove', function(e){
$('#blokje').offset({top: e.pageY-100}); });
</script>
<style>
#blokje{width:200px; height:200px; background:white; position:relative; left:-180px; color:black; }
#blokje:hover{left:0;}
#blokje #tit{position:absolute; width:30px; height:200px; background:black; right:0; top:0; }
</style>
</head>
<body>
<div id="blokje">
<div id="tit"> </div>
<p><a href="#">A link</a><br /> This is the content where I would like to have my content clickable like that link on top </p>
</div>
</body>
</html>