Slide Ads code
Published on March 7, 2025
Main Page
Kerwe Info
As-Salam Al-Amiri
News
Reviews
Roblox
Copy the code below and paste it into your website:
/* Ad container */ #adBanner { position: fixed; left: 0; width: 100%; height: 80px; background-color: white; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); transition: transform 0.5s ease-in-out; z-index: 1000; transform: translateY(-100%); /* Start offscreen (slide up) */ } /* Set default position (bottom or top) */ #adBanner.bottom { bottom: 0; } #adBanner.top { top: 0; } /* Close button */ .close-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: red; color: white; border: none; padding: 5px 10px; cursor: pointer; font-size: 14px; border-radius: 5px; } /* Trigger animation to slide the ad up */ #adBanner.slide-up { transform: translateY(0); } /* Hide ad after closing */ #adBanner.closed { transform: translateY(100%); } /* Hidden Google-like AdBlock detection div */ .adsbygoogle { display: none; /* AdBlock will block this */ }
<!-- Ad Banner --> <div id="adBanner" class="bottom slide-up"> <iframe width="568" height="80" style="border:none" src="https://urbanmove8.neocities.org/adloop" name="bannerlink"></iframe> <button class="close-btn" onclick="this.parentElement.classList.add('closed')">Close</button> </div> <!-- Invisible dummy ad for AdBlock detection --> <div class="adsbygoogle"></div>
// When the page loads, we want to trigger the "slide-up" animation window.onload = function() { document.getElementById('adBanner').classList.add('slide-up'); }