// JavaScript Document var Quotes = new Array(); var randImg = new Array(); var Pick; var Pick2; function randQuote(time) { if(time==null) time = 8000; Pick = parseInt(Math.random()*(Quotes.length)); if(Quotes[Pick]!=null){ document.write('
' + Quotes[Pick] + '
'); setInterval(changeQuote, time); } } function changeQuote() { if(Pick == (Quotes.length-1)) Pick = 0; else Pick = Pick+1; $("#tquote").fadeOut("fast", function() { $("#tquote").html(Quotes[Pick]); $("#tquote").fadeIn("slow"); }); } function rndImg(time) { if(time==null) time = 8000; Pick2 = parseInt(Math.random()*(randImg.length)); if(randImg[Pick2]!=null){ document.write('
' + randImg[Pick2] + '
'); setInterval(changeImg, time); } } function changeImg() { if(Pick2 == (randImg.length-1)) Pick2 = 0; else Pick2 = Pick2+1; $("#tquote1").fadeOut("fast", function() { $("#tquote1").html(randImg[Pick2]); $("#tquote1").fadeIn("slow"); }); }