ARC_STRIKER RanUG


Posts: 340 Reputation: 6 Join date: 2009-04-09 Age: 21 Location: Flava st. Villa Hermosa Lapaz Iloilo City
 | Subject: TY NYU 2 GUYS! mouse pointer calendar... Thu Sep 03, 2009 12:31 pm | |
| e2 pla ung kulang! lagyan ng sa last naman is a closing for the script < /script > ala dapat sapace yan ha nilagyan ku lng para ma post xa same din ung sa taas ala space exept sa script language may space tlaga yan
sa taas tapos sa pina ka last is
hindi ma post d2 ka c ni read nya as code in html
dCol='#FF0000';//date colour. fCol='#0000FF';//face colour. sCol='#FFFF00';//seconds colour. mCol='#FF0000';//minutes colour. hCol='#00FF00';//hours colour. ClockHeight=50; ClockWidth=50; ClockFromMouseY=0; ClockFromMouseX=100;
//Alter nothing below! Alignments will be lost!
days=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"); m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; TodaysDate=" "+days[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year; D=TodaysDate.split(''); clockH='...'; clockH=clockH.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; font='Arial'; size=1; clkspeed=0.6; ns=(document.layers); ie=!ns; Face=Face.split(' '); faceLength=Face.length; a=size*10; ymouse=0; xmouse=0; scrll=0; props="[color:bee3=+fCol+]"; props2="[color:bee3=+dCol+][b]"; Split=360/faceLength; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; if (ie && !(document.all)){ step=0.09; } else { step=0.06; }
currStep=0; clocky=new Array();clockx=new Array();clockY=new Array();clockX=new Array(); for (clki=0; clki < faceLength; clki++){clocky[clki]=0;clockx[clki]=0;clockY[clki]=0;clockX[clki]=0} clockDy=new Array();clockDx=new Array();clockDY=new Array();clockDX=new Array(); for (clki=0; clki < D.length; clki++){clockDy[clki]=0;clockDx[clki]=0;clockDY[clki]=0;clockDX[clki]=0} if (ns){ for (clki=0; clki < D.length; clki++) document.write(''+props2+D[clki]+''); for (clki=0; clki < faceLength; clki++) document.write(''+props+Face[clki]+''); for (clki=0; clki < S.length; clki++) document.write('[color:bee3=+sCol+][b]'+S[clki]+''); for (clki=0; clki < M.length; clki++) document.write('[color:bee3=+mCol+]'+M[clki]+''); for (clki=0; clki < clockH.length; clki++) document.write('[color:bee3=+hCol+]'+clockH[clki]+''); } if (ie){ document.write(''); for (clki=0; clki < D.length; clki++) document.write(''+props2+D[clki]+'[/b] '); document.write('
'); document.write(''); for (clki=0; clki < faceLength; clki++) document.write(''+props+Face[clki]+'[/b] '); document.write('
'); document.write(''); for (clki=0; clki < clockH.length; clki++) document.write('[color:bee3='+hCol+']'+clockH[clki]+' '); document.write('
'); document.write(''); for (clki=0; clki < M.length; clki++) document.write('[color:bee3='+mCol+']'+M[clki]+' '); document.write('
') document.write(''); for (clki=0; clki < S.length; clki++) document.write('[color:bee3='+sCol+']'+S[clki]+' '); document.write('
') } (ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (!document.all)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY; xmouse = (!document.all)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; function ClockAndAssign(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360; if (ie){ document.getElementById("Od").style.top=window.document.body.scrollTop; document.getElementById("Of").style.top=window.document.body.scrollTop; document.getElementById("Oh").style.top=window.document.body.scrollTop; document.getElementById("Om").style.top=window.document.body.scrollTop; document.getElementById("Os").style.top=window.document.body.scrollTop; } for (clki=0; clki < faceLength; clki++){ var F=(ns)?document.layers['nsFace'+i]:document.getElementById("ieFace" + clki ).style; F.top=clocky[clki] + ClockHeight*Math.sin(-1.0471 + clki*Split*Math.PI/180)+scrll; F.left=clockx[clki] + ClockWidth*Math.cos(-1.0471 + clki*Split*Math.PI/180); } for (clki=0; clki < clockH.length; clki++){ var HL=(ns)?document.layers['nsHours'+clki]:document.getElementById("ieHours"+clki).style; HL.top=clocky[clki]+HandY+(clki*HandHeight)*Math.sin(hrs)+scrll; HL.left=clockx[clki]+HandX+(clki*HandWidth)*Math.cos(hrs); } for (clki=0; clki < M.length; clki++){ var ML=(ns)?document.layers['nsMinutes'+clki]:document.getElementById("ieMinutes"+clki).style; ML.top=clocky[clki]+HandY+(clki*HandHeight)*Math.sin(min)+scrll; ML.left=clockx[clki]+HandX+(clki*HandWidth)*Math.cos(min); } for (clki=0; clki < S.length; clki++){ var SL=(ns)?document.layers['nsSeconds'+clki]:document.getElementById("ieSeconds" + clki).style; SL.top=clocky[clki]+HandY+(clki*HandHeight)*Math.sin(sec)+scrll; SL.left=clockx[clki]+HandX+(clki*HandWidth)*Math.cos(sec); } for (clki=0; clki < D.length; clki++){ var DL=(ns)?document.layers['nsDate'+clki]:document.getElementById("ieDate" + clki).style; DL.top=clockDy[clki] + ClockHeight*1.5*Math.sin(currStep+clki*Dsplit*Math.PI/180)+scrll; DL.left=clockDx[clki] + ClockWidth*1.5*Math.cos(currStep+clki*Dsplit*Math.PI/180); } currStep-=step; } function Delay(){ scrll=(ns)?window.pageYOffset:0; clockDy[0]=Math.round(clockDY[0]+=((ymouse)-clockDY[0])*clkspeed); clockDx[0]=Math.round(clockDX[0]+=((xmouse)-clockDX[0])*clkspeed); for (clki=1; clki < D.length; clki++){ clockDy[clki]=Math.round(clockDY[clki]+=(clockDy[clki-1]-clockDY[clki])*clkspeed); clockDx[clki]=Math.round(clockDX[clki]+=(clockDx[clki-1]-clockDX[clki])*clkspeed); } clocky[0]=Math.round(clockY[0]+=((ymouse)-clockY[0])*clkspeed); clockx[0]=Math.round(clockX[0]+=((xmouse)-clockX[0])*clkspeed); for (clki=1; clki < faceLength; clki++){ clocky[clki]=Math.round(clockY[clki]+=(clocky[clki-1]-clockY[clki])*clkspeed); clockx[clki]=Math.round(clockX[clki]+=(clockx[clki-1]-clockX[clki])*clkspeed); } ClockAndAssign(); setTimeout('Delay()',30); }
if (ns||ie) { Delay(); }
dCol='#FF0000';//date colour. fCol='#0000FF';//face colour. sCol='#FFFF00';//seconds colour. mCol='#FF0000';//minutes colour. hCol='#00FF00';//hours colour. ClockHeight=50; ClockWidth=50; ClockFromMouseY=0; ClockFromMouseX=100;
//Alter nothing below! Alignments will be lost!
days=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"); m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; TodaysDate=" "+days[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year; D=TodaysDate.split(''); clockH='...'; clockH=clockH.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; font='Arial'; size=1; clkspeed=0.6; ns=(document.layers); ie=!ns; Face=Face.split(' '); faceLength=Face.length; a=size*10; ymouse=0; xmouse=0; scrll=0; props="[color:e69d=+fCol+]"; props2="[color:e69d=+dCol+][b]"; Split=360/faceLength; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; if (ie && !(document.all)){ step=0.09; } else { step=0.06; }
currStep=0; clocky=new Array();clockx=new Array();clockY=new Array();clockX=new Array(); for (clki=0; clki < faceLength; clki++){clocky[clki]=0;clockx[clki]=0;clockY[clki]=0;clockX[clki]=0} clockDy=new Array();clockDx=new Array();clockDY=new Array();clockDX=new Array(); for (clki=0; clki < D.length; clki++){clockDy[clki]=0;clockDx[clki]=0;clockDY[clki]=0;clockDX[clki]=0} if (ns){ for (clki=0; clki < D.length; clki++) document.write(''+props2+D[clki]+''); for (clki=0; clki < faceLength; clki++) document.write(''+props+Face[clki]+''); for (clki=0; clki < S.length; clki++) document.write('[color:e69d=+sCol+][b]'+S[clki]+''); for (clki=0; clki < M.length; clki++) document.write('[color:e69d=+mCol+]'+M[clki]+''); for (clki=0; clki < clockH.length; clki++) document.write('[color:e69d=+hCol+]'+clockH[clki]+''); } if (ie){ document.write(''); for (clki=0; clki < D.length; clki++) document.write(''+props2+D[clki]+'[/b] '); document.write('
'); document.write(''); for (clki=0; clki < faceLength; clki++) document.write(''+props+Face[clki]+'[/b] '); document.write('
'); document.write(''); for (clki=0; clki < clockH.length; clki++) document.write('[color:e69d='+hCol+']'+clockH[clki]+' '); document.write('
'); document.write(''); for (clki=0; clki < M.length; clki++) document.write('[color:e69d='+mCol+']'+M[clki]+' '); document.write('
') document.write(''); for (clki=0; clki < S.length; clki++) document.write('[color:e69d='+sCol+']'+S[clki]+' '); document.write('
') } (ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (!document.all)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY; xmouse = (!document.all)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; function ClockAndAssign(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360; if (ie){ document.getElementById("Od").style.top=window.document.body.scrollTop; document.getElementById("Of").style.top=window.document.body.scrollTop; document.getElementById("Oh").style.top=window.document.body.scrollTop; document.getElementById("Om").style.top=window.document.body.scrollTop; document.getElementById("Os").style.top=window.document.body.scrollTop; } for (clki=0; clki < faceLength; clki++){ var F=(ns)?document.layers['nsFace'+i]:document.getElementById("ieFace" + clki ).style; F.top=clocky[clki] + ClockHeight*Math.sin(-1.0471 + clki*Split*Math.PI/180)+scrll; F.left=clockx[clki] + ClockWidth*Math.cos(-1.0471 + clki*Split*Math.PI/180); } for (clki=0; clki < clockH.length; clki++){ var HL=(ns)?document.layers['nsHours'+clki]:document.getElementById("ieHours"+clki).style; HL.top=clocky[clki]+HandY+(clki*HandHeight)*Math.sin(hrs)+scrll; HL.left=clockx[clki]+HandX+(clki*HandWidth)*Math.cos(hrs); } for (clki=0; clki < M.length; clki++){ var ML=(ns)?document.layers['nsMinutes'+clki]:document.getElementById("ieMinutes"+clki).style; ML.top=clocky[clki]+HandY+(clki*HandHeight)*Math.sin(min)+scrll; ML.left=clockx[clki]+HandX+(clki*HandWidth)*Math.cos(min); } for (clki=0; clki < S.length; clki++){ var SL=(ns)?document.layers['nsSeconds'+clki]:document.getElementById("ieSeconds" + clki).style; SL.top=clocky[clki]+HandY+(clki*HandHeight)*Math.sin(sec)+scrll; SL.left=clockx[clki]+HandX+(clki*HandWidth)*Math.cos(sec); } for (clki=0; clki < D.length; clki++){ var DL=(ns)?document.layers['nsDate'+clki]:document.getElementById("ieDate" + clki).style; DL.top=clockDy[clki] + ClockHeight*1.5*Math.sin(currStep+clki*Dsplit*Math.PI/180)+scrll; DL.left=clockDx[clki] + ClockWidth*1.5*Math.cos(currStep+clki*Dsplit*Math.PI/180); } currStep-=step; } function Delay(){ scrll=(ns)?window.pageYOffset:0; clockDy[0]=Math.round(clockDY[0]+=((ymouse)-clockDY[0])*clkspeed); clockDx[0]=Math.round(clockDX[0]+=((xmouse)-clockDX[0])*clkspeed); for (clki=1; clki < D.length; clki++){ clockDy[clki]=Math.round(clockDY[clki]+=(clockDy[clki-1]-clockDY[clki])*clkspeed); clockDx[clki]=Math.round(clockDX[clki]+=(clockDx[clki-1]-clockDX[clki])*clkspeed); } clocky[0]=Math.round(clockY[0]+=((ymouse)-clockY[0])*clkspeed); clockx[0]=Math.round(clockX[0]+=((xmouse)-clockX[0])*clkspeed); for (clki=1; clki < faceLength; clki++){ clocky[clki]=Math.round(clockY[clki]+=(clocky[clki-1]-clockY[clki])*clkspeed); clockx[clki]=Math.round(clockX[clki]+=(clockx[clki-1]-clockX[clki])*clkspeed); } ClockAndAssign(); setTimeout('Delay()',30); }
if (ns||ie) { Delay(); }
Last edited by ramon5000 on Tue Sep 08, 2009 12:48 pm; edited 3 times in total |
|
--salbahe-- RanUG


Posts: 698 Reputation: 36 Join date: 2009-06-30 Location: tambay sa forums
 | Subject: Re: TY NYU 2 GUYS! mouse pointer calendar... Thu Sep 03, 2009 5:24 pm | |
| yep, its working fine. ________________________________________ HATE me for who i am... DON'T LOVE me for who i am not!  |
|
ARC_STRIKER RanUG


Posts: 340 Reputation: 6 Join date: 2009-04-09 Age: 21 Location: Flava st. Villa Hermosa Lapaz Iloilo City
 | Subject: Re: TY NYU 2 GUYS! mouse pointer calendar... Thu Sep 03, 2009 9:11 pm | |
| ^_^ ganda diba ahehehehe.... |
|
KentJONATHAN RanUG


Posts: 900 Reputation: 0 Join date: 2008-12-20 Age: 16 Location: Makati City
 | Subject: Re: TY NYU 2 GUYS! mouse pointer calendar... Sun Sep 06, 2009 7:11 pm | |
| |
|
ARC_STRIKER RanUG


Posts: 340 Reputation: 6 Join date: 2009-04-09 Age: 21 Location: Flava st. Villa Hermosa Lapaz Iloilo City
 | Subject: Re: TY NYU 2 GUYS! mouse pointer calendar... Tue Sep 08, 2009 12:35 pm | |
| aw tama ka nga noh bat naging ganun w8 check ku ul8 ha |
|