skip to content

A more complex slideshow

2nd March 2007


Information

Building on my previous example of a simple slideshow, this one takes it a step further and it becomes a multi-tabbed slideshow.

The addition of the four tabs allows you to add up to 72 more photos making a total of 96 possible separate images. As you can see from this demonstration you do not have to populate all the possible positions, the styling can cope with any number from 1 to 24 on each tabbed page.

As with the previous example there is also the option to have a few lines of descriptive text which will appear beneath the thumbnails.

There are just two images used in the presentation which are:

The main background image.

The 'selected' arrow image.

This is known to work in IE6, IE7, Firefox, Netscape 8 with IE rendering and Opera (hold down the mouse button to see full size image).

Just to make it a little different I have use a couple of lines of php to choose a random default image each time the page is reloaded. If anyone is interested this is the php used:

<h3>2nd March 2007</h3>
<?php
$num = Rand (1,31);
?>
<div class="photo">
<img class="default" 
src="photo/pic_<?php echo $num; ?>v.jpg" alt="" title="" />

All the photographs in this slideshow have been purchased from dreamstime for use on CSS play. These are copyright the various photographers and should not be copied without their permission.



Copyright

Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

1. If you are using this on a personal web site then please add a link back to CSSplay and retain any copyright comment in the stylesheet.
A donation to the 'Support CSSplay' fund would be appreciated.

2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at}cssplay.co.uk and in this case a donation to the 'Support CSSplay' fund is required.

3. If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.


Recommended Sites

CSSplay web design/assistance

"The citroen.co.uk web site uses
CSS Play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth


Advertise with CSSplay

CSS play pages

CSS (Design) - TOP.ORG

CSS play recommend

Earn from your site today with Netklix text adsSitegrinderPSD to HTMLFree, practical CSS menus, layouts, and examples