logo

Functions

slideshow( var identifier, string folder, bool show_controls_arrow, bool show_controls_dots, int time, string effect );

functionslideshow gets all files in folder and makes a slideshow of them for you.

var identifier expects any value, but numbers are very recommended.

string folder expects a folder name such as "slideshow" which will then lead to "./img/slideshow/**" and read all images inside.

bool show_controls_arrow and show_controls_dots expect a true/false. This will turn on or off corresponding controls (dots, or arrows).

int time expects a number in [ms]. If this number is zero, then it won't be timed.

string effect expects an effect name. Currently only "fade" or nothing ("") can be used, but more could be set up in the "slideshow.css" for the current template and then be used in this function.

 

If the slideshow fails to generate its cache file, it returns -1. This can be caused by missing, or empty folder, etc.

 

This has to be used only once per page max. Having more will cause an error.

Images in slideshow are loaded from a folder. This should contain for each image a "*.kstr" file with the same name as an image. This file gets loaded and its contents will get shown as description of image when shown in slideshow!

Usage example

	
	<?php 
		slideshow(0,"gallery",true,true,15000,"fade"); 
		//("" - empty parameter 'folder' leads to "./img/", but in this case goes to "./img/gallery/")
	?> 

Showtime!

1 / 13
IMG_6539.jpg
2 / 13
IMG_6579.jpg
3 / 13
IMG_6591.jpg
4 / 13
IMG_6624.jpg
This is an example text in file "IMG_6624.kstr"!
Named like that it gets assigned to corresponding image "IMG_6624.*"
5 / 13
IMG_6640.jpg
6 / 13
IMG_6646.jpg
7 / 13
IMG_6661.jpg
8 / 13
IMG_7073.jpg
9 / 13
IMG_7868.jpg
And his name is ... Turbo!
10 / 13
IMG_8419.jpg
From the darkness he comes ...
11 / 13
IMG_8493.jpg
12 / 13
IMG_9175.jpg
13 / 13
IMG_9187.jpg
1 2 3 4 5 6 7 8 9 10 11 12 13