- Menu scripts
- Window scripts
- Calendar scripts
- Gallery scripts
- Form widgets
- Tab view scripts
- Table widgets
- Drag and drop
- Folder trees
- Tooltips
- AJAX scripts
- Content Effects

- Misc scripts
- Javascript games
- Chess widgets
- DHTML Suite
- Resources
- cbolson.com
Download image slideshow
Licensing
This script is distributed under the LGPL open source license.
Commercial licenses are also available. Some of these licenses also includes personal e-mail support for up to 1 year.
Download script
You can download the entire script from this zip file.
Add images to slideshow
In the <body> section, add images to the slideshow in the <div id="theImages"> section
This is done with the following syntax:
<a href="#" onclick="showPreview('images/image1_big.jpg');return false"><img src="images/image1.jpg"></a>
image1.jpg is the small image, while image1_big.jpg is the larger version of image1.jpg, i.e. the image that is loaded into the preview pane
When someone opens the page, you can have a default image showing in the preview pane. This is done by adding a <img> into the "previewPane" div. Example:
<div id="previewPane">
<img src="images/image1_big.jpg">
</div>
Add image captions
Image captions are added right below the <A> tags for your small images. Example:
<div class="imageCaption">This is the caption of image number 1</div>
<div class="imageCaption">This is the caption of image number 2</div>
<div class="imageCaption">This is the caption of image number 3</div>
<div class="imageCaption">This is the caption of image number 4</div>
<div class="imageCaption">This is the caption of image number 5</div>
<div class="imageCaption">This is the caption of image number 6</div>
<div class="imageCaption">This is the caption of image number 7</div>
<div class="imageCaption">This is the caption of image number 8</div>
Change size of gallery
If you're not satisfied with the initial appearance(width, height, border colors etc.) of the gallery, you can make adjustments to the CSS(The <style type="text/css"> part). Look at the comments in the CSS for further information
Comments
Post your comment
Please wait...



Thanks!
Thanks!
"R", A new slideshow script has been released today which got a "play" functionality.
Nice script, trying to incorporate it on a site. Was wondering if it'd be possible to center the thumbnails under the main image? The cMotion script we used earlier could do this, which was very handy. They had this in the js-file:
Set to 1 for left start, 0 for right, 2 for center.
var startpos=2;
I tried to add their code for this to your script, but couldn't get it to work (I'm not that great at JS).
Would be interesting to hear your thoughts!
Thanks, Karl
Perhaps it would work if you add the following line:
imageGalleryObj.style.left = (40 - document.getElementById('slideEnd').offsetLeft/2 + galleryContainer.offsetWidth/2) + 'px';
at the bottom of the initSlideShow function. Just insert it right above gallerySlide();
Mark,
#theImages{
position:absolute;
height:200px;
will only resize the DIV element, not the image. If you want to resize the image, you'll have to resize them manually in an image editor.
I just have new one : IE dosen't work good. Don't play js.
I splited this image_slideshow code to embeded into my html template.
Now work so good on firefox, opera, etc. but IE never.
And i would like to eliminate o reduce focus effect, into firefox is good, but IE8 or less version always show focus effect.
I'm tryig the new code in this post, i'chek up now.
I'll check this one version.
Hoo, i got a new question about:
How can I place same code :
This caption will go below of image.
I would like use same code for same images, but in this case, a description goes here:
Ex.:
I've try a several times, putting code any place, but dont work so good. Maybe i mistake where to place...
The list of image caption class, alway appear like a list, never hide.
Let me try again whit new version, an write solution if works for me.
On IE, i don't like to use this part of js:
function showImage()
{
if(activeImage){
activeImage.style.filter = 'alpha(opacity=50)';
activeImage.style.opacity = 50;
}
this.style.filter = 'alpha(opacity=50)';
this.style.opacity = 50;
activeImage = this;
}
How can i fix this effect? of course, in this particular case, i don't need to use it.
Tks 4 all your colaboration.
On FFX and others browsers works good, a clean image displayed, no focuse effects showed.
You can safely remove
activeImage.style.filter = 'alpha(opacity=50)';
and
this.style.filter = 'alpha(opacity=50)';
which are the two lines used by IE
Is there a way to encapsulate the script in a object (hiding globals that might be colliding now) so it would run strictly local to a 'pop up' div launched using jquery?
My images are not the same size, and therefore, when shown in the preview panel they expand...
Please take a look:
For instance, the first image source is :
http://www.asteinarts.com/artwork/1.jpg
this is a long image
The page I am building is here:
http://www.asteinarts.com/galleryshow2.html
The image stretched to cover the preview area...
Is there any way the image shows with its true dimensions instead of stretching?
Your help is greatly appreciated,
Thanks for building and sharing such nice script!
Maritza
Some work needs to be doe with this script in order to support different sized images properly.
However, the new script Image Gallery 2011 supports this. Perhaps it could be an alternative!?
URL: http://www.dhtmlgoodies.com/index.html?whichScript=image-gallery-2011
Pete, This script hasn't beeen updated to support multiple slideshows on the same page. However, two of my other slideshow scripts supports this:
Image slide show with vertical thumbnail strip:
http://www.dhtmlgoodies.com/index.html?whichScript=image-slideshow-vertical
And the new Image Gallery 2011:http://www.dhtmlgoodies.com/index.html?whichScript=image-gallery-2011
And i get new ver. about howto split code into my template webdesign!
I follow your tips.
God Bless You!
Always, when i recive my email notify, the links never put the righ "post" or answer to find it.
dhtmlgoodies have any error about link answer to see directly who respond my questions.
post@dhtmlgoodies.com
to me
show details 9:19 PM (15 hours ago)
Hello Mark Moran,
There is new comment (written by softrainfall) on www.dhtmlgoodies.com, article "". \\---error???--//
To unsubscribe from comments on this article, click here.
- Show quoted text -
Please, check this.
All the info is there... if anybody would care to take a look and perhaps offer some suggestions.
Thanks...
Everything appears to load correctly when you land on the page: http://www.sallysbbq.com/pages/locations_NEW.shtml
The thumbnail images that are visible do respond when you click on them. However, if you move your cursor over either of the navigation (arrow) graphics, all of the thumbnail images slide over to the right leaving only a portion of the first thumbnail visible! Very strange. If you reload the page it all looks good again.
I have another slide show with 9 images on another page that works just fine: http://www.sallysbbq.com/pages/media.shtml
Any ideas?
Thanks,
Noel
Thank you for the slide show
but to be activated automatically if the display is very A.
I have been having a problem with it though. On a website I am building, I have a vertical navigation bar to the left of the slideshow and the slideshow blocks the flyout navigation. Do you know how to remedy this? I've been trying everything I can to fix it but am stuck. Here is a link to the site on my testserver:
http://41ave.com/capitalcampaign/gallery01.html
By specifying a z-index for your menu, I think the problem is fixed, example:
inside style.css add
#navigation ul{
z-index:10000;
}
Thank you for posting the gallery, it's been a real challenge tracking down a clean and simple design like this one which is ideal. However...
I'm quite new to coding (javascript in particular) so please bear with me. I downloaded the zip folder and placed it in a local loaction to add to my practice page. As an initial test to customise the gallery I simply tried replacing the image jpg's with my own using the same files names to avoid error. This creates some very odd behaviour, sometimes the images load into the preview and thumb slide and sometimes they don't. If they don't it will sometimes allow me to right click the icon and select "show images". Again this only works on occassion. As soon as I replace the original images that come with the demo, they all load fine without a problem. I'm baffled! Any help would be appreciated.
F.Y.I. -
I found a missing "
However, I'm having a small problem getting it to work correctly on my website. The thumbs seem to be adding more space between them then necessary and the slide arrows are disappearing on me!
HELP!
http://dkyphoto.net
Further to my previous post I've also tried resizing my images to match those of the demo before replacing the jpg files. This made no difference, they just won't show in the preview or in the thumbnail slide. The weird thing is, as soon as I replace the originals it all starts working fine again and all images display without a problem?? It appears to be a file specific issue as I'm not altering any of the code at all, just overwriting the image files with my own. Is there any code I'm not aware of that specifies the image files other than the file name itself? I'm at a complete loss??? This gallery is absolutely perfect and I would love to get it working.
Thanks again.
Do you have some web-address where you can post a demo of your non-working slidehow ?
I think I need to see it in order to help you.
I'm having trouble getting this awesome slideshow to work properly! I followed all the directions and uploaded everything, however, the thumbnails are spaced funny and the slides arrows disappear when you hover over them! I've about pulled all my hair out trying to figure out why!
http://dkyphoto.net/adults/index.html
please help!
Could you try to do the following:
Replace the doctype at the top of your html file (line 1) with this:
<!DOCTYPE HTML PUBLIC "-// W3C// DTD HTML 4.0 Transitional// EN" "http://www.w3.org/TR/html4/loose.dtd">
now and it's doing the same thing still. I just can't see why it would be acting up.
http://dkyphoto.net/adults/index.html
I think I know what the problem is. You should either
1) Put the arrow-images inside a sub folder called images, i.e. change your html code to
<div id="arrow_left"><img src="http://dkyphoto.net/adults/images/arrow_left.gif">
<div id="arrow_right"><img src="http://dkyphoto.net/adults/images/arrow_right.gif">
or
2) Make this change to image-slideshow.js:
Line 42: Replace existing line with this:
this.getElementsByTagName('IMG')[0].src = this.id + '_over.gif';
Line 58: Replace existing line with this:
this.getElementsByTagName('IMG')[0].src = this.id + '.gif';
Any help would be really appreciated, thank you!
I am using your script - I really like it a lot! Kudos, BUT it looks like the script is caching on the page so my main image and several thumbnail images do not show up when the page is refreshed. Is there a way that I can clear the cache of variables or whatever to make it load correctly each time the page loads?
Please let me know. I've tried everything I can think of to fix this, to no avail. I though everything was working fine until I happened to catch this error. I'm on a strict deadline and I don't want to have to find another script to make this work.
Thanks again for your great programming, I think this is going to be great once I work out the little bug.
Cheers,
Kato.
can use it for ANY web APP, even WordPress, PHP-Nuke, Joomla, DotNetNuke, Magento, Drupal,..., ANY website and ANY weblog Themes. a sample use available in download files.
----------------------------------------------
WHAT IS DOLPHIN SLIDESHOW MAKER ?
Dolphin Slideshow Maker is a powerful and perfect slider service made for web designers. With Dolphin SlideShow, you can organize any type of web content into a beautiful and user-friendly slider. Benefits:
*Saves Development Time
*Beautiful Default Design
*Powerful Features & API
*Diligent Support
----------------------------------------------
Main Site : http://www.DolphinSlideshow.com,
FREE LICENSE version : http://www.DolphinSlideshow.com/downloads/DolphinSlideshowMaker.zip
PRO LICENSE version : http://codecanyon.net/item/dolphin-slideshow-maker/309834?ref=SmartTeam
Video Tutorials : http://www.DolphinSlideshow.com/Tutorial
Live Preview Demo Login: http://www.DolphinSlideshow.com/Demo
Username: admin
Password: admin
One question I have for you, is there a possibility to be able to arrows the rest on top of the large image so a user and click on them to change the image instead of always having to click on a thumbnail to change the image. Your help is greatly appreciated.
Many thanks,
Alan
The bigger problem is that the images when clicked don't do anything; the preview pane does not change and the only visible change is the url changes to add a pound sign at the end.
The page I've been working on is here: http://cerasmith.com/abecedarian.html
Any tips would be wonderful (I've only just started working with building sites, so I'm sure there are obvious errors. :/)
Thanks!!!
Line 109 says= minGalleryXPos = imageGalleryWidth - document.getElementById('slideEnd').offsetLeft;
Any help is appreciated.
Thank you! And congratulations...
So, I want to use you scripting, which i really in need of it to develop my gallery section.
Thanks again for your great programming.
thanks
www.multiroll.net/samples.html
I have loaded the javascript, css and html into my page's code. I have also loaded the images and the captions. However, it doesn't "slide" to the right to view other photos and the captions aren't showing up. What have I done wrong?
www.multiroll.net/samples.html
You can see what I mean ... http://usgwarchives.net/id/ppcs-id(new).html
I know it has to do with the javescript. I am a bit dense when it come to that language.
Thanks,
Matt Friend
Well, I am not good with javascript. I need your help to implement lightbox in your script
Thanks for your great time, you have done a great script.
thanks
Thank you so much for the slideshow. I love it!
One question....
I want to add a second way of navigating through the images in the slideshow. I want to have the slideshow working so that if someone were to click on the large preview images, the slideshow would automatically move forward to load the next slide.
For example, there is already one way to navigate through the slideshow using the scrolling thumbnails. I want to add a second way to navigate through the images whereby a user can just click on the large preview image box and the image automatically switches to the next slide.
Can you help me with this???
I am pretty sure that I need to add something to the js however, I only write CSS and not js so I don't know what to add.
Thank you!!!
It's really super slideshow, but it doesn't works on Chrome...
It's good on FireFox and Opera, but on Chrome when I clik on the thumbs it displays the "image loading, bla-bla" message, and nothings happens, the massege stay, and there is no pictures...
I don't know how to play slide auto.
You can help me !
Great slideshow, can I get the thumbs to display on the top and the big img under it? Thanks
it really did halped me alooooooooot
is it possible to link each generate preview image to a new page by putting? I was only able for the default preview image..
Would be grateful for your help!
all the best!
xian
Also, how do you resize the thumbnails?
its working fine in ie, but its not working in mozilla,chrome.
left & right arrows at thumbnails are disappering.
in Mozilla Arrows are not working fine.
I donwant the left & right Arrows to diaappear when i roll mouse on them.
please check http://tarrytavern.9scale.com/gallery.html
please help me .
Thanks
Thank you.
Question is. How can I preview my image from the web? I copy image source, when I click it don't change anything.