Jump to content
Fórum Script Brasil
  • 0

COMO FECHAR ESTE POPUP COM TEMPO


betezek

Question

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>
&lt;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]>
  &lt;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>
&lt;script> 
  $(document).ready(function(){
   $("#popup").delay(4000).show("slow");
    $(".close").click(function(){$("#popup").hide("slow");});
  });
</script>
&lt;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>
&lt;script type="text/javascript"> 
var pageTracker = _gat._getTracker("UA-1656750-13");
pageTracker._trackPageview();
</script>&lt;script src="/js/render/edit.js"></script>
</body>
</html>

Edited by kuroi
Adicionar tag CODE
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...