insert adsbygoogle in middle of text

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6056823408182093"
crossorigin="anonymous"></script>
<p>The tag is used with preformatted text. It instructs the browser that the text is to appear exactly as written in the HTML file, including any spaces or blank lines. If you type five spaces inside tags, you get five spaces on the website.character
The   character creates a space that does not break into a new line. Two words that are separated by a non-breaking space always appear on the same line.</p>
<div id="out"></div>

<script>
var ads='<ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6056823408182093" data-ad-slot="1990514885"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script>'
var d= document.getElementsByTagName("p")[0].innerHTML;
var d2=(d.split(" ").length - 1)/2;
var d3= d.split(" ");
var d4 = d.replace(d3[d2], "<br/>"+ads+"<br/>"+d3[d2]);
document.getElementsByTagName("p")[0].innerHTML=d4




</script>

insert adsbygoogle in middle of text

© 2025 Manajmnt code

Share to :

Related

Comments


  1. An Indian Restaurant & Takeaway in Croydon.
    We serve a wide range of delicious Asian & Indian food. We offer online ordering and table booking.For reservation call 02036678566
    adeenaskitchen.co.uk/

    ReplyDelete

Post a Comment

message