Hello, I want to add the following 2 functions to the code below. I have no Idea At all, Please Help. I want the images to rotate as they do now, but Id like to add random transitions to each image change.
function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.fl oor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}
function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}
The Code
<style>
body{
background-attachment:fixed;
background-repeat: no-repeat;
}
</style>
<script language="JavaScript1.2">
//Background Image Slideshow- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com
//Specify background images to slide
var bgslides=new Array()
bgslides[0]="http://i14.photobucket.com/albums/a345/Instar/greenbgfade17oi.jpg"
bgslides[1]="http://i14.photobucket.com/albums/a345/Instar/rsntort1024-1.jpg"
bgslides[2]="http://i14.photobucket.com/albums/a345/Instar/WesternDiamondBackRattlesnake-1.jpg"
bgslides[3]="http://i14.photobucket.com/albums/a345/Instar/reptile_003-1.jpg"
bgslides[4]="http://i14.photobucket.com/albums/a345/Instar/reptileCopperheadSnake-1.jpg"
bgslides[5]="http://i14.photobucket.com/albums/a345/Instar/turtlesbg-1.jpg"
bgslides[6]="http://i14.photobucket.com/albums/a345/Instar/reptile_001-1.jpg"
bgslides[7]="http://i14.photobucket.com/albums/a345/Instar/Picture163-1.jpg"
bgslides[8]="http://i14.photobucket.com/albums/a345/Instar/NzCommonGreenGeckoCloseup-1.jpg"
bgslides[9]="http://i14.photobucket.com/albums/a345/Instar/crocodile_3-1.jpg"
bgslides[10]="http://i14.photobucket.com/albums/a345/Instar/FijianSkinkEatingEarwig-1.jpg"
bgslides[11]="http://i14.photobucket.com/albums/a345/Instar/HornedLizard-1.jpg"
bgslides[12]="http://i14.photobucket.com/albums/a345/Instar/1113330679_1280-1.jpg"
bgslides[13]="http://i14.photobucket.com/albums/a345/Instar/Croc-1.jpg"
bgslides[14]="http://i14.photobucket.com/albums/a345/Instar/Chameleon_Wallpaper_by_phreeza-1.jpg"
bgslides[15]="http://i14.photobucket.com/albums/a345/Instar/1113330784_1280-1.jpg"
//Specify interval between slide (in miliseconds)
var speed=3000
//preload images
var processed=new Array()
for (i=0;i<bgslides.length;i++){
processed[i]=new Image()
processed[i].src=bgslides[i]
}
var inc=-1
function slideback(){
if (inc<bgslides.length-1)
inc++
else
inc=0
document.body.background=processed[inc].src
}
if (document.all||document.getElementById)
window.onload=new Function('setInterval("slideback()",speed)')
</script>