Register now or login here to start promoting your blog and your favourite articles.
Simple JQuery Image Slide Show with Semi-Transparent Caption
30 Mar 2009 - 113 Comments
I will show you how to create a simple image slide show with a semi-transparent caption with jQuery. This example is suitable to display news headlines, or a image slide show in your website frontpage.
Author: kevin | Source: queness
Demonstration Download

Introduction

Update 17 Dec 2009: I have created a new version of this image slide show. It's more efficient, clean and simple. Please visit: jQuery Photo Slide Show with Slick Caption Tutorial Revisited

I will no longer provide support for this old tutorial

Image Slide Show is one of the famous components in web design and development. A lot of the websites display news headlines in an image slide show to attract viewers attention, of course, with caption/excerpt. No doubt about it, this is a clever method not only to gain attentions, but it also makes the website more alive (not too static, dull).

So, here we go again, I separated my codes into 3 sections: html, css and javascript and I will explain how it works in each section.

1. HTML

My ultimate objective is - to keep the html as simple as possible. So, the final product is as following. The first image has a class called "show". Class show has higher z-index, so image with this class will display on top, thus image with this class will always display on top of the rest. The second thing you need to know is the DIV with "caption" class. It has the highest z-index. That DIV will be used to display the caption. The caption is retrieve from the REL attribute in the img element. You can put html element in the REL attribute. Be aware of extra padding and margin of the html elements you used. (eg h1, p).

Have a look at the html code:

<div id="gallery">

	<a href="#" class="show">
	<img src="images/flowing-rock.jpg" alt="Flowing Rock" alt="" title="" width="580" height="360" rel="<h3>Flowing Rock</h3>You can put html element 
	inside the REL attribute."/></a>
	</a>
	
	<a href="#">
		<img src="images/grass-blades.jpg" alt="Grass Blades" alt="" title="" width="580" height="360" rel="<h3>Grass Blades</h3>description"/>
	</a>
	
	......
	......
	......

	<div class="caption"><div class="content"></div></div>
</div>
<div class="clear"></div>

2. CSS

In this section, I declared a container #gallery for this image slide show. The CSS for this tutorial is pretty straight foward, the most importance thing is the z-index. You have to make sure the "show" class z-index is lower than the "caption" z-index.

body{
	font-family:arial
}

.clear {
	clear:both
}

#gallery {
	position:relative;
	height:360px
}
	#gallery a {
		float:left;
		position:absolute;
	}
	
	#gallery a img {
		border:none;
	}
	
	#gallery a.show {
		z-index:500
	}

	#gallery .caption {
		z-index:600; 
		background-color:#000; 
		color:#ffffff; 
		height:100px; 
		width:100%; 
		position:absolute;
		bottom:0;
	}

	#gallery .caption .content {
		margin:5px
	}
	
	#gallery .caption .content h3 {
		margin:0;
		padding:0;
		color:#1DCCEF;
	}
	

3. Javascript

Finally, the Javascript code. I have added comments in each line to explain what it does. My concept for this image slide show:

  • Hide all the images
  • Display the first image and caption
  • Find the image with "show" class, and grab the next image using next() method
  • Add "show" class to next image
  • Animate the image (fadeout the current image, fadein next image)
  • And, it repeats above steps over and over again
$(document).ready(function() {		
	
	//Execute the slideShow
	slideShow();

});

function slideShow() {

	//Set the opacity of all images to 0
	$('#gallery a').css({opacity: 0.0});
	
	//Get the first image and display it (set it to full opacity)
	$('#gallery a:first').css({opacity: 1.0});
	
	//Set the caption background to semi-transparent
	$('#gallery .caption').css({opacity: 0.7});

	//Resize the width of the caption according to the image width
	$('#gallery .caption').css({width: $('#gallery a').find('img').css('width')});
	
	//Get the caption of the first image from REL attribute and display it
	$('#gallery .content').html($('#gallery a:first').find('img').attr('rel'))
	.animate({opacity: 0.7}, 400);
	
	//Call the gallery function to run the slideshow, 6000 = change to next image after 6 seconds
	setInterval('gallery()',6000);
	
}

function gallery() {
	
	//if no IMGs have the show class, grab the first image
	var current = ($('#gallery a.show')?  $('#gallery a.show') : $('#gallery a:first'));

	//Get next image, if it reached the end of the slideshow, rotate it back to the first image
	var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery a:first') :current.next()) : $('#gallery a:first'));	
	
	//Get next image caption
	var caption = next.find('img').attr('rel');	
	
	//Set the fade in effect for the next image, show class has higher z-index
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);

	//Hide the current image
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
	
	//Set the opacity to 0 and height to 1px
	$('#gallery .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 });	
	
	//Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
	$('#gallery .caption').animate({opacity: 0.7},100 ).animate({height: '100px'},500 );
	
	//Display the content
	$('#gallery .content').html(caption);
		
}

Conclusion

Finally, you will have a nice and simple jQuery image slide show with a semi-transparent caption. Make sure you check out the demo and download the source code to play with it. Last but not least, I need your support :) If you like this article, please help me to promote it by adding this post into your bookmark. Or you can subscribe to my RSS for more posts. Thanks!

Update

14-4-2009: Fixed caption problem. Thanks to one of the readers kpastore.

Update 17 Dec 2009: I have created a new version of this image slide show. It's more efficient, clean and simple. Please visit: jQuery Photo Slide Show with Slick Caption Tutorial Revisited

I will no longer provide support for this old tutorial

Demonstration Download

Copyright & Usage

The effects and techniques demonstrated in tutorials on Queness can be used in whatever manner you wish without attribution. You cannot copy whole tutorials (unless permission is given), either in English or translated to another language.

Share This Post to Support Me! :)


Comments

Elba Lapos on 4 Apr 2009 says:
That is exactly what I was looking for, thanks for sharing. I have two problems: The text in the caption div doesn't render properly in Chrome ( I guess this is something with the rendering engine...) Is there way to prevent it? The second problem is that Dreamweaver says the img tag is invalid because of the duplicates...and after editing your script in it only one of the images is shown.
maty1206 on 10 Apr 2009 says:
Thanks a lot! This is my first time using Jquery code and it works perfect.

I appreciate your help.
kpastore on 10 Apr 2009 says:
Great, simple and efficient! Thanks for this. I do notice a slight issue with the caption though, and wondered if you had a fix. Just before the image rotates and the caption disappears, you can see the next caption being loaded. I am not experienced enough in jQuery to do this myself yet, but was hoping that you or someone on the board could help.

Thanks in advance!
bluebird on 11 Apr 2009 says:
Thank a lot for the tut! Works fine in Mozilla, But I, too, hava a problem with the caption in IE6:-(( Wondering if anyone knows how to fix it?
Mats A. on 12 Apr 2009 says:
Hi!

Having the same "problem" with the text (for the next slide) appearing as the current text are fading away.

Hoping and crossing my fingers for a fix! :-)
kpastore on 13 Apr 2009 says:
OK, so I think I found an answer. On the line here:

//Set the opacity to 0 and height to 1px
$('#gallery .caption').animate({opacity: 0.0}, { queue:false, duration:50 }).animate({height: '1px'}, { queue:true, duration:300 });
//

Change "duration:50" to "duration:0". Leave the 300 the same.

That should alleviate the caption 'flash' before the new image loads.
kevin on 13 Apr 2009 says:
@kapstore: thanks for that small fix. it looks even better now.

@Mats A, Bluebird: kapstore's solution will meet your needs :)
anestesya on 15 Apr 2009 says:
Very good! Simple and efficient, was looking for this for some time now. I would like to report a problem, too, realized that for images of different sizes they can be accessed by the mouse even when not presented to the user, because there is just not visible to the user's eyes. I found a solution! Instead of the user function to let the photos used the opaque property display: none to hide the image and display: block to bring it to the user.
anestesya on 15 Apr 2009 says:
What I believe to be correct!
//Set the opacity of all images to 0
$('#gallery a').css("display","none");

//Get the first image and display it (set it to full opacity)
$('#gallery a:first').css("display", "block" );

//Set the fade in effect for the next image, show class has higher z-index
next.css({
display: 'block',
opacity: 0.0
})
.addClass('show')
.animate({opacity: 1.0}, 1000);

//Hide the current image
current.animate({opacity: 0.0}, 1000)
.css({display: 'none'})
.removeClass('show');

I hope I have helped! :-)
kevin on 15 Apr 2009 says:
@anestesya: *salute* thanks for the solution :)
Eric.Cheng on 16 Apr 2009 says:
Great work! lite but powerful.

I will make a joomla module base on it.
thelastpulse on 16 Apr 2009 says:
@anestesya - great fix! made the animations a lot smoother. however I'm still having the firefox/chrome issue with the caption header appearing before it fades in
Keith Kesler on 19 Apr 2009 says:
I like this slideshow and the advice anestesya gave was helpful in fixing that particular issue but not I notice that the picture disapears quickly instead of fading away. I already changed the number aftercurrent.animate({opacity: 0.0}, 1000)
but it doesn't seem to affect this. If anybody has a solution let me know.
(*^__^*)...嘻嘻 on 20 Apr 2009 says:
想找一个合适的js就是找不到
Eyveneena on 22 Apr 2009 says:
Thank you for this demonstration and tutorial, it helped me tremedously to understand the slideshow effects jQuery can perform.
Darfuria on 30 Apr 2009 says:
It'd be great if you could throw in some support for integrating lightbox/thickbox with this, to make the most awesome slideshow gallery ;)
Capnhud on 12 May 2009 says:
Is it possible to add a ul so that it resembles
something like this page http://enhance.qd-creative.co.uk/examples/imgGall/?ss=dark
kevin on 12 May 2009 says:
@Eyveneena: good to hear that it helps :)

@Darfuria: that sounds like a great idea, I'm thinking of creating a more advance modal window tutorial tho.. :)

@Capnhud: unfortunately, due to the way I scripted it, it will be hard to create a UL for it...
Adam on 13 May 2009 says:
For all still having the issue where the caption header is appearing before it fades in. Use the solution by @kpastore, then open your css file and add overflow: hidden; to the #gallery id in the css file. should look something like below
#gallery {
position:relative;
height:310px;
overflow: hidden;
}
David on 25 May 2009 says:
Is it just me or does the Text in caption display funny in Chrome?
themeheven on 27 May 2009 says:
Hey Very nice way i like it. But i have not checked it will do soon and ...........
Anyway thank you.
BrY4n on 27 May 2009 says:
I like this script very much but I had to manipulate the code to do what I needed. I am displaying the pictures dynamically so instead of the img rel="" i added a span class under the image but still within the <a> tag. After the first loop the captaions STOPPED displaying, but the images are fine. Thoughts?
kevin on 27 May 2009 says:
@BrY4n: hi there, I assumed you put the description in SPAN instead of REL. You have to change the following code:

var caption = next.find('img').attr('rel');

to

var caption = next.find('span').html();

it should work, I haven't tested it. Cheers.
Elaine on 5 Jun 2009 says:
Is there a way you can stop the slideshow? Like creating a pause button and stopping the code?
Rahul on 5 Jun 2009 says:
This is nice jquery image slideshow effect.
Dityo Nurasto on 10 Jun 2009 says:
Thank you! Now I don't need to use JD SmoothGallery anymore because it use mootools which increasing complexity when joining with jquery.

In IE 8 there's a big black bar before it called, so I create some addition to script

.caption { display: none }

and I add a line in SlideShow() function

$('#gallery .caption').show();

Superb.
Anthony Bouch on 10 Jun 2009 says:
Excellent tutorial - and just what I was looking for - nice one.
photo retouching on 11 Jun 2009 says:
I must admit I couldn`t follow the tut, but the idea is exactly what I want so my website designer is going to be getting an email link to this. Thanks
FireDart on 12 Jun 2009 says:
Hello,

How can you add a forward and backward feature for this gallery? Can you also add a thumb nail strip under it?

-FireDart

P.S: I am new to JQuery so please go easy on the explanation as I should get it but am still learning it.
John Galt on 17 Jun 2009 says:
Added to http://tutlist.com

Thanks, great tutorial
Accounting Homework on 26 Jun 2009 says:
This is a wonderful site...everything is laid out well and is fun to use. I hope there will be more new sites in the future
Albert on 1 Jul 2009 says:
great! I need it , thanks!
accountinghomework help on 2 Jul 2009 says:
Thanks for the help on the article. It really helped.
Beth on 5 Jul 2009 says:
Nice effect. It is just what I'm looking for. I'm new to this and was hoping someone could describe how to make the height of the caption div smaller if possible. I changed the height of the caption in the style sheet:

#gallery .caption {
z-index:600;
background-color:#000;
color:#ffffff;
height:32px;
width:100%;
position:absolute;
bottom:0;
}

and the div shrunk down as requested, but the transparency remained the full 100px as in the default. Do I change the script at all?

Thanks for bearing with me here.
Beth on 5 Jul 2009 says:
It looks like I need to change line/s 54 and 55 in the script.

# 54 //Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
# 55 $('#gallery .caption').animate({opacity: 0.7},100 ).animate({height: '100px'},500 );

Nice notation in the script, thanks.
ajay on 6 Jul 2009 says:
Thank you so much!!!
nextart on 7 Jul 2009 says:
great!!! i've used it in my website.
but W3C not VALIDATE the attribute rel="".. how fix it?

bye
kevin on 7 Jul 2009 says:
@nextstart: you can use other attribute to replace REL, such as ALT, but the problem is, it will display as tooltip, and you might need to get your hand dirty to play with my script.
Elliot on 8 Jul 2009 says:
not sure why it not working for me.. I tried to get the default jquery-slideshow.html file to work in firefox i uploaded the files on dreamweaver and all i get is the first image with a long black box at the bottom and the slideshow doesen't work at all.. any ideas?
kevin on 8 Jul 2009 says:
@Elliot: I believe dreamweaver has messed up the code. Have you check the DOC Type?
Elliot on 8 Jul 2009 says:
@kevin ye i actually got it to work but in dreamever on the design end it covers some links and I'm not sure how to make the div box smaller? i keep changing the size on the code side but the design stays the same plus I get stating its invalid markup.. any ideas?
David on 13 Jul 2009 says:
This looks brilliant, but in ie6 I'm still getting the flash of the next caption before it loads properly, have I done something wrong? or are other people getting this too?

Thanks for this great effect!
What? on 28 Jul 2009 says:
Great piece, new to JQuery. What may be the best way to pause the slide on a hover?

Thanks!
kevin on 29 Jul 2009 says:
Hi: you can refer to my new gallery post, it should all sort of controls:

jQuery Image Gallery/News Slider Tutorial
Gerry on 31 Jul 2009 says:
is there anyway of stopping the text in the caption being slightly transparent along with the background?

id like the text to be 100% solid color
ThiagoNasc on 3 Aug 2009 says:
Great slideshow! Thanks to share!
I did some modifications to include in website but have one thing that i can't.

The "challenge" is add link at the text box too. In standard mode, hte link cover only the image without box.
If someone can help me with that... i will wait! So... Thanks for all
MysteriousIsland on 7 Aug 2009 says:
Does anyone know how to fix a z-index probelm with ie7? I have layered a drop down menu ontop of this script, but in the old ie the menu goes behind the slide show. Thanks
kevin on 10 Aug 2009 says:
@Gerry: nay, you can't do it. transparency will affect the children object. Unless you create a sibling object and positioned it on the top of the transparent div. It's quite tricky.

@ThiagoNasc: not really sure what you're trying to implement, but you can put link in the box.

@MysteriousIland: erm, z-index issue. Maybe you can set z-index for the menu so that it's higher than the gallery. Or reduce the z-index value of the gallery to see if it works. :)
DDark on 11 Aug 2009 says:
Great tutorial! How would you modify it so that the images appear in random?
kevin on 11 Aug 2009 says:
Hi DDark, nay, you can't... i requires a lot of modification and better off start a new one.. :)
Darfuria on 13 Aug 2009 says:
Just noticed that my implementations of this aren't working in IE6. I've had to write some dirty conditional tags to display static images in IE6 so that websites don't look bizarre.

Any idea what can cause IE6 issues?
easisell.com on 15 Aug 2009 says:
Hi there - GREAT script.

IS THERE any way of making this appear randomly?

Thanks! :)
Daveed on 18 Aug 2009 says:
Great tutorial, Kevin thank you.
All browsers are working fine, including IE6 (when will we be able to stop making things work for this old clunker?). Have not run into any issues myself.
thiagonasc on 18 Aug 2009 says:
@kevin
Thanks for attention to answer!
Sorry for my english, i\m a brazilian guy!
My question is: How I add link in \black box\? Like you said, I can add a link in text (and text-box), but the CSS give error.
Can you help me please?
So thank you! A lot! Bye.
Jay on 19 Aug 2009 says:
Fantastic Script, but is it possible to have the comment box clickable? - if so, how would i go about doing it?
kevin on 19 Aug 2009 says:
@thiagonasc: yes, you can put it in the img rel attribute:


yea, that's it.

@Jay: yep, that can be done. but it will require some modification.

you need to store the link somewhere in the img tag.

1. you need to add anchor tag after the img tag and hide it.
2. create a click event for the caption class, and write the code so that if the user click on it, it will grab the anchor tag of the current item.

hope u understand it. sorry for not providing the code.
Patrik on 26 Aug 2009 says:
Hi,

I need your help. I\m trying to recreate the effect that are in flash in following links,

http://www.carmeda.se/
http://www.evolution.se/

As you can see the effect is quite basic. Once reloading the site I want the text to \fly in\ basicly.

Can I do this with this script?

I appreciate your help.

/ Patrik
kevin on 26 Aug 2009 says:
Hi Patrick, yes, it's very basic,
I can guide you how to do it,
But, definitely not with this script.

I will send u email soon, in case i reply lately, drop me a message in contact form to remind me. Thanks!
kash on 26 Aug 2009 says:
Hi, great script you have here. Just exactly what I wanted.

I do have a suggestion.

Can you make the parameter settings simpler? Because in this case, I have to go back and forth the css and the script itself just to change a few things. For instance the height of the caption, size of image, etc. Having one place that change the setting on all place would do wonders in term of user friendliness.

Again, great script and many thanks :)
Patrik on 28 Aug 2009 says:
Thanks Kevin, I would appreciate it.
I've tried to modify the script but it ended up messy :-)

Note: I want to have the slide show, but with the effect I described in my previous post.

/ Patrik
hasfa on 30 Aug 2009 says:
Thanks Guys. Ur article really solve my problem. Good and nice work.
Harsha on 5 Sep 2009 says:
thanks a lot dude
its working
PacificBen on 11 Sep 2009 says:
Incredibly easy! Incredibly awesome! Thank you so much for putting this up Man!
benoit on 14 Sep 2009 says:
@ Elaine this will add a pause/play button

function slideShow() {
$('#gallery a').css({opacity: 0.0});
$('#gallery a:first').css({opacity: 1.0});
$('#gallery .caption').css({opacity: 0.6});
$('#gallery .caption').css({width: $('#gallery a').find('img').css('width')});
$('#gallery .content').html($('#gallery a:first').find('img').attr('rel'))
.animate({opacity: 0.6}, 400);
run = setInterval('gallery()',6000);
//stop button
$('#btn-pause').click(function () {
clearInterval(run);
return false;
});
//play button
$('#btn-play').click(function () {
run = setInterval('gallery()',6000);
return false;
});
}
Bluefusion on 15 Sep 2009 says:
Great script - but what do I need to change so that I can control the width of the caption box rather than it going full width of the image, I want it go to exactly 500 pixels wide?
Jason Ford on 16 Sep 2009 says:
I've got a bug with this. I am running this slideshow at the top of my page, but I am getting a Flash of the text below the slideshow appearing just before it slides into place - any ideas?
Dan on 16 Sep 2009 says:
For some reason the first image loads funny then disapears then comes back and then all is normal can anyone help me fix this glitch? its on my site here.
Jeevan | GFO on 21 Sep 2009 says:
Thanks for sharing. Great mini script.
R9Films on 11 Oct 2009 says:
Best scripts ever. Fit right into my design after some extensive modifications, but the scripts were so good that it only took me an hour to implicate those changes. Thanks for this amazing contribution to the world of web design.
nathan on 16 Oct 2009 says:
love it. would love it even more if someone could help me change the script to stop after looping through the images once... at the moment, after the first time through, it shows the caption but no pic - maybe a conflict with other scripts running on the page?
thomas on 17 Oct 2009 says:
Can anyone show me how to fix z-index in IE7 ,i got drop down menu but it shown behide slideshow. I tried to lower z-index in gallery and higher index in drop down menu but cant help. Thanks
dalz on 26 Oct 2009 says:
Hi,

Im having problems with the slideshow working in ie7. The only problem with safari and firebox is the first image loads then disapears then comes back.

Can anyone help me?? thanks
Felix on 27 Oct 2009 says:
@dalz

Delete the line 6 in the html code.

There is a duplicate </a>
Marcel on 31 Oct 2009 says:
Hi, many thanks for this simple slideshow plugin. This is exactly what I was looking for!
Michael Doni on 5 Nov 2009 says:
Man

Very NICE and Thanks =DDD

Super cool and so usefully!!!


Regards,
wieyoga on 8 Nov 2009 says:
thanks for this slideshow plugin
Tabitha on 10 Nov 2009 says:
Hey- great slideshow! First one I could get to work alongside jQuery Accordion

Anyways... when the page loads that has the slideshow the box/text are not aligned.. it appears lower than it should, and corrects itself on the rest of the images - this causes the text on the box to be illegible. http://tabithakarcher.com/remedy/info.php

Fix for this?

Thanks in advance.
Rajan Bastola on 17 Nov 2009 says:
See our Website
carlos on 22 Nov 2009 says:
Hi please, i still cant solve the problem with the text (for the next slide) appearing as the current text are fading away, like it apears before it should, under the image... you can see what i mean here carl.seo - host (dot) com with firefox... please ive spend 6 hours intalling it!, wait for your answer!
kevin on 23 Nov 2009 says:
Hi Carlos, please refer back to the comment from the top..

from Adam: For all still having the issue where the caption header is appearing before it fades in. Use the solution by @kpastore, then open your css file and add overflow: hidden; to the #gallery id in the css file. should look something like below
#gallery {
position:relative;
height:310px;
overflow: hidden;
}


i think that will fix ur problem.
ESP on 23 Nov 2009 says:
Great slideshow, got it working fine in all browsers, the trouble is that it doesn\\t validate. It fails on the rel attribute, any ideas for a fix for this.

Many thanks!
carlos on 23 Nov 2009 says:
Hi please i cant make it work as it should, i leave you my css and jf file content:

css:
http://shortText.com/nffx4cw0v

js:

http://shortText.com/y419kuz18

please help me i would like to have it working!

best reagrds
carlos
ESP on 24 Nov 2009 says:
OK - got it validating, you need to change the rel attribute to alt but be wary of the characters used see below:
alt=\"&lt;h3>title02&lt;/h3>&lt;p>Lorem ipsum dolor sit amet&lt;/p>\"

The js file needs amends too, do a find and replace for the rel to alt.

Hope this helps!
kevin on 24 Nov 2009 says:
hi carlos, I think it will be better if you upload your website online.

@ESP: bravo :)
Andrew on 26 Nov 2009 says:
Kevin,
What a wonderful little script, and I am very impressed that you are providing such continual support...you must have \\\\\\\\\\\\\\The Passion\\\\\\\\\\\\\\!
Well done and thanks.
Hory&Nebo on 27 Nov 2009 says:
Hello,

gret tool!

I have set this slideshow without captions. It work correctly in all browsers apart from IE7.
In IE7 slideshow starts with 1st image, then fades out to white and then 1st image re-appears again. And this goes in a loop. Any ideas?
Thanks
nike air shox on 27 Nov 2009 says:
would you want to be a cool boy/girl? you wont miss it: http://www.haishoe.com . its a shoes store selling various kinds of nike shoes such as nike air max, air shox, air jordans, air force one, sneakers, dunk, boots.etc. keep up with the fashion, you should not miss it : http://www.haishoe.com
Adam on 1 Dec 2009 says:
Excellent plugin! Im having the same problem as the comment from Hory & Nebo. Its working great in every browser but IE7. Thanks for any help you may offer.
Adam on 1 Dec 2009 says:
I meant to say IE8. Sorry!
Adam on 1 Dec 2009 says:
Ok, the #1 rule on commenting is to make sure you read the previous comments! Felixs comment fixed my problem. I had extra </a>s in my code. Excellent plugin, once again!
Seb on 2 Dec 2009 says:
Hey Kev. I found your script amazing.
Easy to implement on any page :).
But I do have a problem: Is there a way to make the caption to fade out before changing the image?
Meaning: a nice fade out effect for the caption as well.

Cheers,
Seb
Jonathon on 4 Dec 2009 says:
Superb script, works beautifully and very simple and easy to manipulate. Who is the author? I wouldnt mind putting their name and info in my code to support them!
mini blinds on 7 Dec 2009 says:
that was some sort of good solution - there are some other good solutions available into the market but this sems to

be the best so far.. .
w77 on 11 Dec 2009 says:
Great tool & thanks EPS got mine to validate using the alt tag instead of REL.

http://w77webdesign.co.uk/
kevin on 16 Dec 2009 says:
Update 17 Dec 2009: I have created a new version of this image slide show. It's more efficient, clean and simple. Please visit:
jQuery Photo Slide Show with Slick Caption Tutorial Revisited

I will no longer provide support for this tutorial. Thanks :)
uggs sale on 19 Dec 2009 says:
Im having the same problem as the comment from Hory
overseas pharmacy no rx on 22 Dec 2009 says:
Hey Kev. I found your script amazing.
Easy to implement on any page :).
Vezpa on 25 Dec 2009 says:
Thanks!
Jonathon said, its easy to manipulate, but I dont know how to change the width of the caption (#gallery .caption width: 100%). If I change it, it do nothing.
Am I dude? :)
uggs on sale on 30 Dec 2009 says:
its easy to manipulate, but I dont know how to change the width of the caption
Vijaya Kumar S on 1 Jan 2010 says:
Really, brilliant work.. Amazing...
jagoane on 3 Jan 2010 says:
wow.. amazing. I willl try in my blog.
Motti Horesh on 5 Jan 2010 says:
Thank you so much! that was exactly what i was looking for :)
Sama on 6 Jan 2010 says:
Great, simple and efficient! Thanks for this. I do notice a slight issue with the caption though, and wondered if you had a fix. Just before the image rotates and the caption disappears, you can see the next caption being loaded. This myself yet, but was hoping that you or someone on the board could help. <a href="http://www.budgetmoscow.com" rel="dofollow">moscow hotels</a>
porno izle on 7 Jan 2010 says:
wow.. amazing. I willl try in my web sites
seks izle on 8 Jan 2010 says:
I'll try on my blogspot site I wish it's valid on blogspot
Glenn Wilton on 9 Jan 2010 says:
To stop the problem with the next caption being visible, add in the following code, it triggers an event 300ms after the animation starts to change the caption when its hidden using setTimeout

//Display the content
//$(#slideshow .content).html(caption);
setTimeout (setCaption(\\ + caption + \\);, 300);
}
}

function setCaption(caption){
$(#slideshow .content).html(caption);
}
Jon Smith on 13 Jan 2010 says:
@Tabitha - Did you get a solution to your box/text issue? I'm having the same issue.

Wasn't sure if you implemented the new version of the slide show or found a fix?
anadikt on 15 Jan 2010 says:
thanks for this slideshow plugin
Colby on 20 Jan 2010 says:
I was looking for an easy slideshow for my website. This looks easy, but I'm not sure where to put the jQuery code. I put the css between <STYLE></STYLE> and everything else between <BODY></BODY>. I just need to know where to put the jQuery code. Thanks.
kevin on 20 Jan 2010 says:
Hi Colby, you can either put the jQuery code in between <HEAD></HEAD> or put it in an external file.

In the demo, I put it between <HEAD></HEAD> You can click on the demo and view source.
bugra ozden on 28 Jan 2010 says:
Thanks
Lindsayanng on 3 Feb 2010 says:
I am working on a website for a client and I am trying to add this slider but it just is NOT working. I basically gave up and tried to just take the source code right off of your demo and stick it in but still it's a no go.

I am trying to add this inside of a wordpress page.. So i added the CSS to my style sheet but changed the #gallery to #slider. Then I added the script to the head between the two script tags and changed all instances of #gallery to #slider so that they matched.

Then I went to the page and inserted the basic HTML structure that you had on your demo.. You'd THINK something like this would work!! BUT ITS NOT.

Clearly some parts are working, and others are not.

I'd be psyched if you could take a look and give me some insights. I am pretty good with understanding code, but I am new to javascript, so i really just need some direction

Here is the website in question:
http://thegirlspotct.com

Leave a comment

http://
Subscribe RSS Subscribe RSS, Keep yourself updated with queness latest posts!
Pixel Crayons Buy and Sell Flash Buy and Sell Flash

Buy wholesale computers directly from China at DHgate.com

Discover the tools to build your e-Commerce Site with Netfirms

  •  
  •  
  •  
  •  
  •  

Community News

Recent Comments

Random Posts


View all posts and news Back to top

About the Author

A web designer and developer who is passionate and keen on contributing to the web development industry. Feel free to say hi to me, or follow me on twitter.

Kevin Liew

Partner

  • Web and Designers
  • CSS Style
  • PV.M Garage Blogzine - (Italian)
  • TutsValley
  • Designrfix
  • CoolVibe
  • Web Developer Juice
  • Denbagus
  • Web Hosting Secret Revealed
  • PSD to HTML Conversion
  • BlueHost