• 03-10-2021, 11:42:56
    #1
    <div id="XX" style="position: fixed; bottom: 0; left: 45%; margin-left: -364px; width: 1000px; height: 80px; z-index: 9999; display: block;">
    <div style="position: relative">
    <a href="javascript:void();" onClick="closeXX();" style="position: absolute; top: -28px; right: 0; cursor: pointer; font-size: 13px; background-color: #f4bd2c; color: #000; padding: 6px; font-weight: 700;">Kapat</a>
    <a style="display: block; width: 100%; height: auto;" href="siteadresi.com" target="_blank">
    <img style="width: 100%; height: auto;" src="imgadresi.com/resim.jpg">
    </a>
    </div>
    </div>


    Arkadaşlar Kapat butonuna basınca reklamı komple kapatmasını istiyorum ama buton çalışmıyor yanlış bir şey mi yapıyorum?
  • 03-10-2021, 12:09:48
    #2
    Şöyle bir kod eklemeniz gerekir.
    function closeXX(){
    document.getElementById("XX").style.display = "none";