Skip to content
User Tools: Mail Login Calendar Contacts Network Search Downloads | +/ -

Slidesjs

Lists of Things // //Set up the current ad campaign. Syntax: //slideImages is an array of arbitrary length //containing all the slide image files. RELATIVE PATH //slideURL likewise is an array of the same length with the ABSOLUTE paths for clickthru ////////////////////////////////////////////////////////////////////////////////////////////////// var slideImages = new Array("nandn.png", "uwa.png", "twitter.png", "help.png"); var slideURL = new Array("/news/", "/Wiki", "http://twitter.com/vistua/", "http://www.vistua.com/Support"); //Don't normally need to change anything below here var thisSlide = 0; function rotate() { thisSlide++; if (thisSlide == slideImages.length) { thisSlide = 0; } document.getElementById("L_slides").style.backgroundImage = "url('http://www.vistua.com/pmwiki/uploads/Site/promo_slide-" + slideImages[thisSlide] + "')" setTimeout("rotate()", 10 * 1000); } function rotateforward() { thisSlide++; if (thisSlide >= slideImages.length) { thisSlide = slideImages.length - 1; } document.getElementById("L_slides").style.backgroundImage = "url('http://www.vistua.com/img/slides/promo_slide-" + slideImages[thisSlide] + "')" } function rotatebackward() { thisSlide--; if (thisSlide <= 0) { thisSlide = 0; } document.getElementById("L_slides").style.backgroundImage = "url('http://www.vistua.com/img/slides/promo_slide-" + slideImages[thisSlide] + "')" } function newLocation() { document.location.href = slideURL[thisSlide]; return false; } function initBannerLink() { if (document.getElementById("L_slides")) { document.getElementById("L_slides").onclick = newLocation; rotate(); } } //


Text last modified on December 27, 2009, at 06:20 PM
You are here: Site » Slidesjs

Vistua Hub version 3.6 © MMVI-MMIX Vistua.com. All Rights Reserved. All times UTC.


About / Contact / Terms / XHTML / RSS / CSS