WELCOME PUPUP MASSAGE PEST KRO BODY KE UPAR

 <style>

#welcomePopup {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0,0,0,0.6);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 99999;

}


.popup-box {

  background: #fff;

  padding: 25px 30px;

  border-radius: 12px;

  text-align: center;

  max-width: 320px;

  width: 90%;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);

}


.close-btn {

  margin-top: 15px;

  padding: 8px 18px;

  background: #ff4d4d;

  color: #fff;

  border: none;

  border-radius: 6px;

  cursor: pointer;

}

</style>


<div id='welcomePopup'>

  <div class='popup-box'>

    <h2>Welcome 😊</h2>

    <p>Thanks for visiting our blog.</p>

    <button class='close-btn' onclick='closePopup()'>Enter Site</button>

  </div>

</div>


<script>

function closePopup() {

  document.getElementById(&quot;welcomePopup&quot;).style.display = &quot;none&quot;;

}

  

  

  

 document.addEventListener(&quot;DOMContentLoaded&quot;, function() {

    // Select all images inside post content

    const postImages = document.querySelectorAll(&quot;.post-body img, .entry-content img&quot;);


    postImages.forEach(function(img) {

        // Create Download button

        const downloadBtn = document.createElement(&quot;button&quot;);

        downloadBtn.innerText = &quot;Download&quot;;

        downloadBtn.style.display = &quot;block&quot;;

        downloadBtn.style.margin = &quot;10px auto&quot;;

        downloadBtn.style.padding = &quot;8px 16px&quot;;

        downloadBtn.style.backgroundColor = &quot;#ff5722&quot;;

        downloadBtn.style.color = &quot;#fff&quot;;

        downloadBtn.style.border = &quot;none&quot;;

        downloadBtn.style.borderRadius = &quot;5px&quot;;

        downloadBtn.style.cursor = &quot;pointer&quot;;

        downloadBtn.style.fontSize = &quot;14px&quot;;


        // On click, download image

        downloadBtn.addEventListener(&quot;click&quot;, function() {

            const link = document.createElement(&quot;a&quot;);

            link.href = img.src;

            link.download = img.src.split(&quot;/&quot;).pop();

            document.body.appendChild(link);

            link.click();

            document.body.removeChild(link);

        });


        // Append button after image

        img.parentNode.insertBefore(downloadBtn, img.nextSibling);

    });

}); 

  

  

  

  

</script>

Comments

Popular posts from this blog

✅ HTML Code: VBA Case Conversion Macros for MS Word & Excel

Site password set pest kro Head ke uper