betezek Posted July 2, 2011 Report Share Posted July 2, 2011 (edited) Estou com um prqueno problema. Tenho uma popup que abre correto, mas não consigo que ela feche automaticamente no tempo certo.Alguém, pode me dar uma luz!<!DOCTYPE html> <html> <head> <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:350px; height:450px; position:absolute; left:200px; top:200px; margin:-150px 0 0 -150px; display:none} </style> </head> <body> <div id="popup"> <img src="122.jpg"> <a href="#" class="close">Fechar</a> </div> <script> $(document).ready(function(){ $("#popup").delay(4000).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> </body> </html> Edited July 3, 2011 by kuroi Adicionar tag CODE Quote Link to comment Share on other sites More sharing options...
Question
betezek
Estou com um prqueno problema. Tenho uma popup que abre correto, mas não consigo que ela feche automaticamente no tempo certo.
Alguém, pode me dar uma luz!
Edited by kuroiAdicionar tag CODE
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.