• 04-01-2019, 10:55:08
    #1
    Sitede otomatik açılan popup var bu popup belirli bir sürenin sonunda nasıl kapanır otomatik
    #tpopup{
      position:absolute;
      width:100%;
      height:100%;
      background:#fff;
    
      border-radius:5px;
    margin-top:-22px;
    
      text-align:center;
      box-shadow:0 0 10px 0 #000;
    }
    		   #tpopup img{
    		   height:100%;
    			   width:100%;
    		   }
    #tclose {
    	height: 37px;
        padding: 2px;
        position: absolute;
        background: black;
        color: white;
        right: calc(50% - 150px);;
        top: 80%;
        border-radius: 11px;
        width: 300px;
        font-size: 24px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 8px;
        font-weight: bold;
        font-family: 'Arial Black', Arial, sans-serif;
        cursor: pointer;
        box-shadow: 0 0 10px 0 #000;
    }
    	   
    	   </style>
    		   <script>
    		   $(document).ready(function(){
      
      $("#thover").click(function(){
    		$(this).fadeOut();
        $("#tpopup").fadeOut();
    	});
      
      
      $("#tclose").click(function(){
    		$("#thover").fadeOut();
        $("#tpopup").fadeOut();
    	});
      
    });
    
    		   </script>
  • 04-01-2019, 11:04:10
    #2
    var timeout = 5000; // 5 sn.
    setTimeout(function(){
      $("#tpopup").fadeOut();
    }, timeout);
  • 04-01-2019, 11:19:52
    #3
    Daryl_Dixon adlı üyeden alıntı: mesajı görüntüle
    var timeout = 5000; // 5 sn.
    setTimeout(function(){
      $("#tpopup").fadeOut();
    }, timeout);
    Çok teşekkürler hocam elinize sağlık