DHTML JavaScript Multi Topic Slideshow Code

This unique multi topic slideshow allows you to display several different slideshow topics within the same player.

You may add as many slideshows as you like.

Each slideshow may contain as many slides and corresponding messages as you like.

The slideshow requires no absolute positioning. So you may paste it even into ordinary HTML-tables (as seen in this sample).

You may use a player-skin of your own. The script can be set to any player-size and slide-size.

The script has a unique preload feature. It caches the next slide in line as you're viewing the current. This ensures a smooth transition even if you use millions of slides!

IE 4x users will see a special transition effect between the slides.

Cross-browser: works with Internet Explorer4x/5x and Netscape Navigator 4x/6x.

Click the slideshow-links below to see the multi topic feature in action:
- slideshow holiday
- slideshow women
- slideshow carneval
Configuration

Step 1: Open your web page. Insert the following code where you wish the slideshow to appear
(anywhere inside the </body> tag of your web page):


ATTENTION: put the code into HTML-tables in order to place the slideshow to your needs.

Step 2: Open your web page. Go to the top of the script-code and configure the URLS of the slides, the messages, the URL and size of the player-skin, the position of the slides and messages, as well as the font attributes for your messages. Only the configuration of the URLS of the slides and messages is tricky. So let's make it easy by colorizing the code:

// FIRST SLIDESHOW
// Replace the URLs of the slides and the corresponding messages.
// Please note that the URL and the
corresponding message are separated by "|".
// Watch how the "," and the " " are set!
// You may add as many slides as you like.
// Do not use the return-key to break the lines!!!
slideshow[1]=new Array("URL of first slide|Message of first slide","URL of second slide|Message of second slide","URL of third slide|Message of third slide")

gray code:
No need to change anything.

black code:
No need to change anything.

red code:
Each slideshow has a index number. The 1 indicates that this is slideshow number 1.

green code:
The URLs for the slides and the corresponding messages. Each slide and its corresponding message starts like this " and ends like this ". The URL and the corresponding message are separated by a |.

purple code:
Do not forget to set a comma , between the ending " and the starting"!!!

IMPORTANT:
1. Do not use the return-key to break the code into neat lines. This will destroy the script. Just let the lines flow.
2. If you use special characters for your messages, add a \ in front of the special character.
So do not write it's love. Rather write it this way: it\'s love.

Step 3: Configure the links that will start your slideshows. Paste the red and blue code anywhere into your webpage:
<a href="javascript:init(1)">slideshow number 1</a>
This sample-link will start slideshow number 1 as indicated by the blue 1. Set it to 2 to start slideshow number 2. Set it to 3 to start slideshow number 3 and so on ...

Download 500 free copy-and-paste scripts


Like this code snippet? Why not share it with others by copying this page URL: