Monetag ডাইরেক্ট লিংক থেকে এড বানানোর কোড

INFO TODAY BANGLA


BIG BANNER AD


<!--
  Monetag Direct Link Ad Widget
  This widget is designed to display an advertisement from a Monetag direct link.
  It uses an iframe to embed the external ad content, making it suitable for
  sidebar or other widget areas on your Blogger site.
-->
<div id="monetag-ad-container">
  <!--
    The iframe below embeds the Monetag direct link.
    - 'src': Set to your Monetag direct link.
    - 'width' and 'height': Set to 100% to make the iframe responsive within its container.
    - 'frameborder': Set to 0 to remove the default iframe border.
    - 'scrolling': Set to 'no' if you don't want scrollbars within the ad itself.
    - 'allowfullscreen': Allows the embedded content to go fullscreen if it supports it.
    - 'title': Provides an accessible title for the iframe.
  -->
  <iframe
    src="PULOKITO"
    width="100%"
    height="250px" /* You can adjust this height as needed */
    frameborder="0"
    scrolling="no"
    allowfullscreen
    title="Monetag Advertisement"
    style="display: block; margin: 0 auto; max-width: 100%; border-radius: 8px;"
  ></iframe>
</div>

<style>
  /*
    Widget Styling for Monetag Ad
    This CSS ensures the ad container and iframe are responsive and visually appealing.
  */
  #monetag-ad-container {
    background-color: #ffffff; /* White background for the widget box */
    padding: 10px; /* Inner spacing */
    border-radius: 10px; /* Rounded corners for the widget box */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 20px; /* Space below the widget */
    width: 100%; /* Ensure it takes full width of its parent */
    box-sizing: border-box; /* Include padding in width calculation */
    text-align: center; /* Center the iframe if it's smaller than 100% */
  }

  /* Responsive adjustments for smaller screens if needed, though iframe handles much of it */
  @media (max-width: 600px) {
    #monetag-ad-container {
      padding: 5px; /* Reduce padding on smaller screens */
    }
  }
</style>



SIDE SMALL BANNER AD


<!--
  Monetag Direct Link Ad Widget
  This widget displays custom "thumbnail previews" that, when clicked,
  redirect the user to the Monetag direct link.
  It replaces the direct iframe embed with custom HTML and JavaScript.
  Now includes placeholder images for bKash and Nagad logos.
-->
<div id="monetag-ad-container">
  <div class="ad-thumbnail" id="earn-money-thumbnail">
    <img src="https://placehold.co/40x40/007bff/ffffff?text=bKash" alt="bKash Logo" class="thumbnail-logo">
    <span class="thumbnail-text">Earn Money</span>
  </div>
  <div class="ad-thumbnail" id="verify-human-thumbnail">
    <img src="https://placehold.co/40x40/00a651/ffffff?text=Nagad" alt="Nagad Logo" class="thumbnail-logo">
    <span class="thumbnail-text">Verify You are Human</span>
  </div>
</div>

<script type="text/javascript">
  /**
   * @file Monetag Direct Link Ad Widget Script
   * @description This script handles click events on custom ad thumbnails
   * and redirects the user to the specified Monetag direct link.
   */

  // Your Monetag direct link
  var monetagDirectLink = "PULOKITO";

  /**
   * Handles the click event for the ad thumbnails.
   * Redirects the user to the Monetag direct link.
   */
  function redirectToMonetag() {
    window.open(monetagDirectLink, '_blank'); // Opens the link in a new tab/window
  }

  // Get references to the thumbnail elements
  var earnMoneyThumbnail = document.getElementById('earn-money-thumbnail');
  var verifyHumanThumbnail = document.getElementById('verify-human-thumbnail');

  // Add click event listeners to the thumbnails
  if (earnMoneyThumbnail) {
    earnMoneyThumbnail.addEventListener('click', redirectToMonetag);
  }
  if (verifyHumanThumbnail) {
    verifyHumanThumbnail.addEventListener('click', redirectToMonetag);
  }
</script>

<style>
  /*
    Widget Styling for Monetag Ad Thumbnails
    This CSS styles the custom thumbnail previews to be visually appealing
    and responsive.
  */
  #monetag-ad-container {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    padding: 10px; /* Adjusted padding for the new layout */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%; /* Responsive width */
    box-sizing: border-box;
    display: flex; /* Use flexbox to arrange thumbnails */
    flex-wrap: wrap; /* Allow thumbnails to wrap on smaller screens */
    justify-content: space-around; /* Distribute space around items */
    gap: 10px; /* Space between thumbnails */
    min-height: 100px; /* Ensure a minimum height for the container */
    align-items: center; /* Vertically center items if space allows */
  }

  .ad-thumbnail {
    flex: 1 1 calc(50% - 20px); /* Roughly 50% width, accounting for gap */
    max-width: 150px; /* Max width for each thumbnail */
    height: 80px; /* Fixed height for each thumbnail */
    background-color: #e00; /* Red background */
    color: #ffffff; /* White text */
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Stack logo and text vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer; /* Indicate it's clickable */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
  }

  .ad-thumbnail:hover {
    background-color: #c00; /* Darker red on hover */
    transform: translateY(-2px); /* Slight lift effect on hover */
  }

  .thumbnail-logo {
    width: 40px; /* Size of the logo */
    height: 40px; /* Size of the logo */
    object-fit: contain; /* Ensure the entire logo is visible */
    margin-bottom: 5px; /* Space between logo and text */
  }

  .thumbnail-text {
    padding: 0 5px; /* Padding inside the text to prevent it from touching edges */
    line-height: 1.2; /* Adjust line height for multi-line text */
  }

  /* Responsive adjustments for smaller screens */
  @media (max-width: 480px) {
    .ad-thumbnail {
      flex: 1 1 100%; /* Stack thumbnails vertically on very small screens */
      max-width: 100%; /* Take full width */
      height: 70px; /* Slightly reduced height */
      font-size: 13px;
    }
    #monetag-ad-container {
      padding: 5px;
      gap: 8px;
    }
    .thumbnail-logo {
      width: 35px; /* Slightly smaller logo on small screens */
      height: 35px;
    }
  }
</style>

সত্যের সাথে, সময়ের সাথে – ইনফো টুডে বাংলা

সময়োপযোগী খবর ও তথ্যভিত্তিক আপডেট শেয়ার করার একটি নির্ভরযোগ্য অনলাইন প্ল্যাটফর্ম
To Top