<!doctype html>
Blogger Popup
<style>
/* Popup container */
.popup-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
display: none; /* Hidden by default */
}
/* Popup content */
.popup-content {
background-color: #fff;
padding: 20px;
border-radius: 10px;
max-width: 500px;
text-align: center;
position: relative;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
/* Image styling */
.popup-image {
max-width: 100%;
border-radius: 10px;
}
/* Buttons */
.popup-buttons {
margin-top: 15px;
}
.popup-buttons button {
padding: 10px 20px;
margin: 5px;
border: none;
cursor: pointer;
border-radius: 5px;
font-size: 16px;
}
.btn-accept {
background-color: #28a745;
color: #fff;
}
.btn-decline {
background-color: #dc3545;
color: #fff;
}
</style>
<!-- Popup container -->
<div id="popup" class="popup-container">
<div class="popup-content">
<h2>Welcome to Our Blog!</h2>
<a href="Direct link 2.0"_blank" onclick="hidepopup()">
<img class="popup-image" src="Image Code Rmtech 2.0" alt="Popup Image" />
</a>
<div class="popup-buttons">
<button class="btn-accept" onclick="openLink('Direct link 2.0')">Download</button>
<button class="btn-decline" onclick="openLink('Direct link2.0')">Watch</button>
</div>
</div>
</div>
<script>
// Function to show popup when page loads
window.onload = function() {
setTimeout(() => {
document.getElementById('popup').style.display = 'flex';
}, 2000); // Show popup after 2 seconds
}
// Function to open a URL in a new tab and close the popup
function openLink(url) {
window.open(url, '_blank'); // Open URL in new tab
document.getElementById('popup').style.display = 'none'; // Close popup
}
</script>
</!doctype>
0 Comments