I've almost got this right. It now hides on page load and then comes into view, and will fade away on closing the window.
But how to get it to do this with content underneath (like a normal popup?).
Code:
<script type="text/javascript" language="javascript">
$(document).ready(function() {
// hides as soon as the DOM is ready
$("#show").hide();
// shows on page loading
$(".target").show( "drop",
{direction: "down"}, 1000 );
// hides on clicking the link
$("#hide").click(function(){
$(".target").hide( "drop",
{direction: "up"}, 1000 );
});
});
</script>