Tenho este popup que abre no tempo pedido, mas ele não está fechando sozinho, acho que está faltando algo nele pra fechar [window.close]. Eu já fiz e refiz e não consigo saber onde errei.
Abaiso o código:
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>betezek</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
#popup{background:#f8f8f8; border:1px solid #ccc; width:850px; height:550px; position:absolute; left:50px; top:10px; margin:-150px 0 0 -150px; display:none}
</style>
</head>
<body>
<div id="popup">
<iframe name="mural" src="ajaxchat" scrolling="0" border="0" frameborder="0" allowtransparency="true" width="100%" height="450"></iframe>
<br>
<a href="#" class="close">Fechar</a>
</div>
<script>
$(document).ready(function(){
$("#popup").delay(3000).show("slow");
$(".close").click(function(){$("#popup").hide("slow");});
});
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1656750-13");
pageTracker._trackPageview();
</script><script src="/js/render/edit.js"></script>