I am trying to do something similar to the alert box that we get here on SO when we get new comments and answers, the orange box that sticks to the top of the screen, I have something similar but I am trying to get an X close link on it, to close it on click
Here is what I have but it is giving me errors saying the close_error_click() is not defined?
<script type="text/javascript" >
function close_error_click(){
$("#notify-container").fadeOut("slow", function () {
$("#notify-container").remove();
}
</script>
<div id="notify-container">
some other code here
<a onclick="close_error_click" title="dismiss this notification">×</a>
</div>