/* slidebox-setup.js */ /* Slidebox v0.6 Slideshow based on Lightbox JS * Copyright (C) 2006 Olivier Ramonat * * For details, see the Slidebox web site : * http://olivier.ramonat.free.fr/slidebox/ * * Slidebox is a script used to make a slideshow on the current page. It * is based on Lightbox JS, a simple script to overlay images. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA * */ // Your images should be hidden when page is loading. // The following function depends on your links to slidebox images // having a class of "slidebox" // e.g.,
// or if (document.getElementById) { createStyleRule(".slidebox", "visibility:hidden"); } // slidebox calls slidebox_end_init after the page has loaded function slidebox_end_init() { setElementStyleByClassName("slidebox", "visibility", "visible"); // to call any other javascript function after slidebox is intitalized, // insert a line here, e.g., yourfunction(); } function slidebox_showLightbox_hook() { // This function is called by displayLightbox // Hide select boxes as they will 'peek' through the image in IE setElementStyle("select", "visibility", "hidden"); } function slidebox_hideLightbox_hook() { // This function is called by hideLightbox // Display hidden boxes setElementStyle("select", "visibility", ""); } // If you would like to use a loading image, point to it in the next line var loadingImage = 'images/loading.gif'; var closeButton = 'images/close2.gif'; // Display a message var objuserMessage = 'Slidebox (press x to quit)'; var next_link_image = ''; var previous_link_image = ''; // Timeout var displayTimeout = 250; var loopTimeout = 100; // Use image preload var usePreload = 1; // Uncomment these lines to use gif arrows // next_link_image = 'images/next.gif'; // previous_link_image = 'images/previous.gif'; // Use the following format in your XML file : // Add an image number to each display (optional) // repeat your first image parameters as the last to enable an endless loop // when pressing "Next". // //