/******************************************************************************** This script is made by and copyrighted to Thomas Brattli at www.bratta.com Visit for more great scripts. This may be used freely as long as this msg is intact! ******************************************************************************** Browsercheck:*/ ie=document.all?1:0 n=document.layers?1:0 /******************************************************************************** Here are the variables you must set: (this is the only part you have to change) Remember tho, if you wan't different size for the layers, different clip or anything change that in the stylesheet. */ //The delay between the fades (in milliseconds) smaller value gives less time: betweendelay=4000 //Do you wan't it to start over on the first one when it's gone trought all the news? //(set to 0 if not) var loop=1 //What font do you wan't it use? FontFace='Arial' //What font-size (in pixel)? FontSize=14 //Do you wan't it to fade out aswell? 1 for on, 0 for off fadeback=0 //Set the colors, first color is same as background, last color is the color it stops at: //You can have upto 7 colors, set the ones you wan't use to 0 colors=new Array() colors[0]='#CCCCCC' colors[1]='#CCCCCC' colors[2]='#CCCCCC' colors[3]='#999999' colors[4]='#666666' colors[5]='#333333' colors[6]='#000000' //This is the news you wanna have, set the link and the text. If you don't wan't it to link anywhere //use a # as the link news=new Array(new Array(),new Array(),new Array(),new Array(),new Array()) news[0]["text"]="Benvenuti sul sito ufficiale del Dart Club Gorizia." news[0]["link"]="#" news[1]["text"]="Risoluzione minima 800X600 pixel Risoluzione consigliata 1024X768 pixel o superiore." news[1]["link"]="#" news[2]["text"]="Stiamo ottimizzando il sito per tutti i browser." news[2]["link"]="#" news[3]["text"]="Per una visualizzazione a tutto schermo premi F11 - Per tornare alla visualizzazione normale ripremi F11." news[3]["link"]="#" news[4]["text"]="Il sito è stato realizzato interamente da Luca Decorte. - E' aggiornato da V.P. e A.M." news[4]["link"]="#" /*Dont change anything below this! *********************************************************************************/ fadeInit=new Function("oNews=new makeObj('divNews','divCont'); fadeNews(0)") function makeObj(obj,nest){ nest=(!nest) ? '':'document.'+nest+'.' this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style') this.writeref=(n) ? eval(nest+'document.'+obj+'.document'):eval(obj); this.fadeIt=b_fadeIt this.obj = obj + "Object"; eval(this.obj + "=this") } function b_fadeIt(text,link,font,size,speed,fn,num,c0,c1,c2,c3,c4,c5,c6){ if(num' +''+text+'' if(n){this.writeref.write(writetext); this.writeref.close()} if(ie) this.writeref.innerHTML=writetext num++ setTimeout(this.obj+'.fadeIt("'+text+'","'+link+'","'+font+'",'+size+','+speed+',"' +fn+'",'+num+',"'+c0+'","'+c1+'","'+c2+'","'+c3+'","'+c4+'","'+c5+'","'+c6+'")',speed) }else setTimeout('eval('+fn+')',betweendelay) } function fadeNews(num){ if(num=0){ oNews.fadeIt(news[num]["text"],news[num]["link"],FontFace,FontSize,100,'fadeNews('+(num+1) +')',7,colors[6],colors[5],colors[4],colors[3],colors[2],colors[1],colors[0]) } } onload=fadeInit; /*End of fadescript **********************************************************************************/