"); } else { imagecontainer15.append("
"); } } jQuery("#himage15"+step15).fadeIn(fadeInSpeed); //SmoothRotateHeaderImages15(); } } function SmoothRotateHeaderImages15() { fadeOutImage=jQuery("#himage15"+step15); if (rotation15 == 0 ){ //Rotate content sequentially step15+=1; if(step15>(7)) step15=0; } else { //Rotate content randomlystep15= generate15(0,imgNo115); } fadeInImage=jQuery("#himage15"+step15); fadeInImage.fadeIn(fadeInSpeed); fadeOutImage.fadeOut(fadeOutSpeed); } function generate15(x, y) { var range15 = y - x + 1; var randomNum15= Math.floor(Math.random() * range15) + x; while (step15== randomNum15) { randomNum15=generate15(0,imgNo115); }return randomNum15;}
| |
|