<html>
<head>
<style>
#test
{ border: solid 1px red;width: 100px;height: 100px;
}
</style>
<script type="text/javascript" src="jquery-1.4.3.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
$('#test').hide();
$('#pokaji').click(function(e){
$('#test').css("margin-left",e.pageX).css("margin-top",e.pageY).slideDown();
});
$('#close').click(function(){
$('#test').slideUp();
});
});
</script>
<body>
<a href="#" id="pokaji">Pokaji</a>
<div id="test"><a href="#" id="close">sadsa</a></div>
</body>
</html>