To add an image slider to a Google Blogger Blogspot post without using any third-party software, you can follow these steps:
1. Log in to your Blogger account and go to the post editor for the post you want to add the image slider to.
2. Click on the "HTML" tab to switch to the HTML editor.
3. Find the location in the HTML code where you want to add the image slider. This could be at the beginning, middle or end of the post.
4. Copy and paste the following HTML code:
<div id="slider">
<img src="image1.jpg" />
<img src="image2.jpg" />
<img src="image3.jpg" />
</div>
<style>
#slider {
width: 100%;
height: 300px;
overflow: hidden;
}
#slider img {
width: 100%;
height: 300px;
display: none;
}
#slider img:first-child {
display: block;
}
</style>
<script>
setInterval(function() {
$('#slider img:first-child').fadeOut(0)
.next('img').fadeIn(1000)
.end().appendTo('#slider');
}, 3000);
#slider {
width: 100%;
height: 300px;
overflow: hidden;
border: 10px solid #ccc;
border-radius: 10px;
}
#slider img {
width: 100%;
height: 300px;
display: none;
}
#slider img:first-child {
display: block;
}
</style>
</script>
5. Replace the image file names in the code with the file names of the images you want to include in the slider. You can add or remove images as desired.
6. Save the changes to the post.
This code will create a simple image slider that will cycle through the images at a set interval. The height and width of the slider can be adjusted to fit your needs. Note that this code uses jQuery, so make sure to add the jQuery library to your Blogger template if it is not already included.
Example:
Here are a few of my esteemed English Department colleagues.
![](https://cdn.pixabay.com/photo/2016/04/25/07/15/man-1351317__340.png)
![](https://cdn.pixabay.com/photo/2016/04/25/14/15/man-1352025__340.png)
![](https://cdn.pixabay.com/photo/2016/04/25/07/49/man-1351346__340.png)
COMMENTS