// ******************************************************************************** // Copyright (C) 1999 Thomas Brattli // 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! // I will also appriciate any links you could give me. Go to his site for the original code. // ********************************************************************************/ seeit = 0; warner= "# denotes link is to a Flash site - they can be verrrrrry slow without broadband & are often blank without the Flash plug-in. or parts are unusable"; var dom = setupdom(); sayit = new Array(); sayit[0] = "cresby.com"; sayit[1] = " "; sayit[2] = " "+dom; sayit[3] = "today is the "+dom+" of this month"; sayit[4] = " "; sayit[5] = " "; var warner= ".links to Flash sites can be verrrrry slow without broadband"; var goforit = sayit[3]; function checkBrowser(){ this.ver=navigator.appVersion ; this.dom=document.getElementById?1:0 ; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0; this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5); fred=navigator.appName ; fred = fred.search("Explorer") this.ie= (fred>0)?1:0; this.indxof = this.ver.indexOf("MSIE 5"); return this; } bw=new checkBrowser() ; //Set these variables: fromLeft=10 ;// How much from the left of the cursor should the div be? fromTop=10 ;// How much from the top of the cursor should the div be? /******************************************************************** Initilizes the objects *********************************************************************/ //function cursorInit(){ // oCursor=new makeCursorObj('divCursor'); // scrolled=bw.ns4 || bw.ns5?"window.pageYOffset":"document.body.scrollTop"; // if(bw.ns4)document.captureEvents(Event.MOUSEMOVE) // // alert("bw.ie5 "+bw.ie5 +" bw.ie4 "+ bw.ie4 +" bw.ns4 "+ bw.ns4 +" bw.ns5 "+ bw.ns5+" bw.bw "+bw.bw+" bw.fred "+bw.fred) // if(!(bw.ie5 || bw.ie4)) { document.onmousemove=move;} //move(); //} //if(bw.ie4||bw.ie5){ //}else{ //onload=cursorInit; //} function getDomString(num){ var dow; //Create a local variable to hold the string. dow="5th"; if (num < 8) dow="1st"; else if (num < 15) dow="2nd"; else if (num < 22) dow="3rd"; else if (num < 29) dow="4th"; return dow; }//function getDomString(num) // end of script function setupdom(){ var theDate = new Date(); var DC = theDate.getMonth() ; var DimSec = theDate.getTime() ; var Dmw ; var Dimw ; var Duffw ; var DufStrw = new String('') ; var DuffYearw ; var DuffDayw = new String('') ; var DimSecw = 1 ; var Colw = new String('#F0F0FF'); var WrDateStr ; var WrMonthStr ; var na ; var locat; Dimw = 31; Duffw = new Date(DimSec); // dater is mS Dmw = Duffw.getMonth() + 1 ; DuffYearw = Duffw.getYear() ; DuffStrw = DuffYearw.toString() ; // alert(dater+" "+DmC+" "+Duffw); if (Dmw << 12) { Duffw = new Date(DuffYearw.toString(),Dmw.toString(),'1','4','0','0','0') ; DimSecw = Duffw.getTime() - 86400000; // No of mS in a day Duffw = new Date(DimSecw) ; Dimw = Duffw.getDate() ; } Duffw = new Date(DimSec) ; DuffDayw = getDomString(Duffw.getDate()) ; DimSecw = Dimw-Duffw.getDate; if ( (Dimw-Duffw.getDate()) < 7) DuffDayw = DuffDayw + ' & Last'; DuffStrw = Duffw.toString() ; WrDateStr = DuffStrw.substr(0,3) ; na = Duffw.getDate() ; return DuffDayw +" "+ WrDateStr; }