How to Add Ads to Blogger
- Login to your blogger account
- Go to Theme
- Click on Edit HTML
- Click anywhere inside the code area
- Press Ctrl+F
- Search following code
- Paste following javascript code before </body> tags
- Again search following code
- Now paste following code after <body> tags
- Click on Save template and you are done
</body>
<script>
$(document).ready(function($) {
$('.cb_splash_ads .close').click(function(event) {
event.preventDefault();
$('.cb_splash_ads').slideUp('slow');
});
});
$(window).load(function(){
setTimeout(function(){
$('.cb_splash_ads').slideUp('slow');
},3000);
});
</script>
<body>
<!--Splash Popup Ads Start-->Replace Here paste your 300x250 banner ad code with your AdSense or other platform 300x250 banner ad code.
<div class='cb_splash_ads'>
<div class='pop'>
<a class='close' href='#'><img alt='' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5gmiT-JqVi8PhiB9vQg9IEK5txoswdKEIY1gt8kw4mY8Cl88WC1yfMwb7EQnd_Bcx0O_DS5sI8yZRxnwpRWbVoCft9SMZqm_DFw9qGIj2z0-jq1N_pgdSSwVnOGfUgVUguAgA1l6I4qk/s1600/close.gif'/></a>
Here paste your 300x250 banner ad code
</div>
</div>
<!--Splash Popup Ads End-->
Read also:
Customize
- If you want to change automatic closing time limit, you can do it by changing 3000 value from above javascript code.
- If you want your visitor's manually close popup ads by clicking on a close icon, remove following code from above javascript code.
- If you want your visitor's manually close popup ads by clicking on a close icon, remove following code from above javascript code.
$(window).load(function(){That's it.
setTimeout(function(){
$('.cb_splash_ads').slideUp('slow');
},3000);
});
0 comments:
Post a Comment