Today's tutorial will teach you how to add a very simple image slider to the sidebar or content area of your Blogger Blogspot blog. The image slider will enable you to show off your images to readers and makes a nice addition to a personal blog. Each scrolled image is linked to the related post so that readers can find the posts they are interested in very easily. When the reader hovers over the image the slider stops and resumes again when the mouse is removed. See a for a working demo of this image slider in the content area or for a working demo of this image slider in the sidebar area.
This slider is so simple you will be able to have it up and running in about 5 minutes. No change to the template is required making it a breeze to install. Even if you are very new to Blogger and a beginner I will show you just how easy it is to add an image slider to your Blogger blog.
How To Add a Very Simple Image Slider to a Blogger Sidebar
(note this code will scroll the image from bottom to top)
1. Login to Blogger if not already logged in
2. Navigate to Layout > Page Elements
3. Click on Add a Gadget in Blogger sidebar
4. Select the HTML/Javascript widget from the list of available gadgets
5. Paste the following code into the content box of the gadget
6. Add a title to the widget if you wish
7. Substitute the url of your blog posts, the description of your image, the url of the image, and the title of the image for each image you wish to display. For example:
This code results in:
To find the URL of your blog post go to the individual post page and copy the url from the address bar in your browser.
To find the URL of the your image. Upload your image to a blogger post and copy the address enclosed in src=" " tags.
8. Save the gadget
9. Use the drag and drop feature to position the new widget in the sidebar
10. Click on save to save your changes
11. View your new widget in the sidebar of your blog
Tips and Troubleshooting
- To change direction of the slider
Please note that this code will scroll the image from bottom to top. If you would like it to scroll in the reverse direction all you need do is change the direction in the code from "up" to "down". Or alternatively you can scroll from left to right by setting "right" and right to left by setting "left" - To increase the size of the images
To increase or decrease the size of the image displayed simply adjust the width and height parameters to suit your needs - To add more images
To add more images to the slider add the following to the code before </marquee> - To adjust scroll speed
Scroll speed is set to 5 by default but any number can be set between 1 and 20 with "1" being the slowest and "20" being very fast indeed.
In today's tutorial I have shown you how to add a very simple image slider to your Blogger Blogspot blog to show off the images on your blog. There are a number of other image and content sliders and image slide carousels that can be added to Blogger and I will be writing about some of these in my upcoming posts.
Related Articles
List of Blog Know How Tutorials for Blogger Blogs
11 comments:
Hi, do you know if it is possible to add a weblink in blogger header coding? Thanks
Yes Sheelagh it is very possible. Try my tutorial on adding a links menu to the header Add Horizontal Links Menu to Blogger. If this is not what you need come back to me
Hey, thanks for the link. I was looking for a good blogger template site and I was thankful I stumbled on your site! easy to download
Thanks for dropping in Jacks!
Finally a tutorial that doesn't require me to upload files and jump into deep CCS encoding.
I have some questions though:
1.How do you slow it down?
2.Is there a way for it to go from left to right?
Hey..thanks for the sharing..but is there any additional coding I could add to make it stop when the cursor is on top of the moving image??
Hi Alcarcalimo. Thanks for your query.
1. To adjust the speed enter the following parameter scrollamount="1" 1 = slowest speed and 10 fastest speed.
2. To have the slider scroll from left to right set the direction to right. eg marquee behavior="scroll" direction="right"
With both conditions changed you will have something like this:
marquee behavior="scroll" direction="right" scrollamount="3"
Hemy in answer to your question I have tweaked the code to include hover. When you hold the mouse over the image it will stop scrolling until you remove it. Also see my comments above about changing scroll speed. Enjoy!
Hi wizz....i have done that just a few days ago with the basic knowledge of Html that i have .I have actually used it to show ads on my blogs...
http://proaryan.blogspot.com.
Hey Aryan. Displaying ads is a good use for this slider to. Well done you!
real informative post.
Post a Comment