raja

Add banner slide show in Blogger Header

To add a add banner on bloggers header copy and paste the code below.


<!doctype html>


<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css" />
<style>
.mySlides {display:none;}
</style>

<div class="w3-content w3-section" style="max-width:800px; float:right;">

<img class="mySlides" src="https://3.bp.blogspot.com/-4NFX7_35RNU/WL0-i50UY4I/AAAAAAAAAj8/Pbv3DPld44wraARzJISLjfJW6UunKQrwQCLcB/s1600/adclub%2Bcon101%2B%25282%2529.png" style="height:140px;width:700px;margin-right:10px;margin-top:0px" />

<img class="mySlides" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwKOfk-7VlQKp6_Ni4sZRHywDrt6hDuzZJiNIr0aQTDolCAP45wukV950XpUMLa9BRoXDKX194QbaP28qRfB951Lj_fhJidxTBCYk_xcmmGRVZ3VwK2G9LXEFTlEY3LklkYztKUTG7cSg/s1600/adclub501.png" style="height:140px;width:700px;margin-right:10px;margin-top:0px" />
  
<img class="mySlides" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1U86RT6QLosTb1CKHJW_sWJ9vp8cQ7PCjU6vKIcRJxrgATtM40wd2OKVxUCWeOyurVpp6QtktndLfKKlyVYjdWear7q_Ch8_-nIJjqK-8zH4x9yI7OlUh3kO2hbuplPu8Ja-TPPiQhX0/s1600/24.png" style="height:140px;width:700px;margin-right:10px;margin-top:0px" />



  <img class="mySlides" src="https://4.bp.blogspot.com/-mIVrg-r3jeo/WL03l19FfPI/AAAAAAAAAjk/8Z5AOFBJEZQckcp8dgfGvNzlLc6PK3QQQCLcB/s1600/672.png" style="height:140px;width:700px;margin-right:10px;margin-top:0px" />

  

</div>

<script>
var myIndex = 0;
carousel();

function carousel() {
    var i;
    var x = document.getElementsByClassName("mySlides");
    for (i = 0; i < x.length; i++) {
       x[i].style.display = "none";
    }
    myIndex++;
    if (myIndex > x.length) {myIndex = 1}
    x[myIndex-1].style.display = "block";
    setTimeout(carousel, 8000); // Change image every 8 seconds
}
</script>


</!doctype>


No comments:

Post a Comment