Forum GLT.PL Strona Główna
GLT.PL
FAQ  FAQ   Szukaj  Szukaj   Użytkownicy  Użytkownicy   Grupy  Grupy
Rejestracja  ::  Zaloguj Zaloguj się, by sprawdzić wiadomości


Napisz nowy temat  Odpowiedz do tematu
 Skrypt zegara (java script) « Zobacz poprzedni temat :: Zobacz następny temat » 
Autor Wiadomość
Radh
PostWysłany: Czw Sty 01, 1970 12:00 am    Temat postu: Skrypt zegara (java script) Odpowiedz z cytatem

@Administrator
Administrator


Dołączył: 30 Cze 2002
Pochwał: 1
Posty: 740
Skąd: Gdańsk

<script language="javascript">
<!--W3e JAVAscript Preset
var timerID = null;
var timerRunning = false;
function stopclock()
{
if(timerRunning)
clearTimeout(timerID)
timerRunning = false;
}

function startclock()
{
stopclock();
showtime();
}

function showtime()
{
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var timeValue = "" + ((hours > 12) ? hours - 12 : hours);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
timeValue += (hours >= 12) ? " P.M." : " A.M.";
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
//-->
</script>

<form name="clock" onSubmit="0">
<input type="text" name="face" size="24">
</form>

<script>startclock();</script>
_________________
Radh
Powrót do góry
Ogląda profil użytkownika Wyślij prywatną wiadomość Wyślij email Odwiedź stronę autora
djstrong
PostWysłany: Czw Sty 01, 1970 12:00 am    Temat postu: Ten zegar jest o wiele ciekawszy. Zobaczcie Odpowiedz z cytatem

Kilobit
Kilobit


Dołączył: 30 Lip 2002
Posty: 17
Skąd: Jastrzębie Zdrój

<SCRIPT language=JavaScript>
dCol='red';//date colour.
fCol='blue';//face colour.
sCol='lime';//seconds colour.
mCol='000000';//minutes colour.
hCol='000000';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;

//Alter nothing below! Alignments will be lost!

d=new Array("NIEDZIELA","PONIEDZIAŁEK","WTOREK","&brvbar;RODA","CZWARTEK","PIĄTEK","SOBOTA");
m=new Array("STYCZEŃ","LUTY","MARZEC","KWIECIEŃ","MAJ","CZERWIEC","LIPIEC","SIERPIEŃ","WRZESIEŃ","PA&not;DZIERNIK","LISTOPAD","GRUDZIEŃ");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.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;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?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){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
}
for (i=0; i < H.length; i++){
var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
}
for (i=0; i < M.length; i++){
var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
}
for (i=0; i < S.length; i++){
var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
}
for (i=0; i < D.length; i++){
var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>
Powrót do góry
Ogląda profil użytkownika Wyślij prywatną wiadomość Odwiedź stronę autora
TRINITY
PostWysłany: Czw Sty 01, 1970 12:00 am    Temat postu: Ja dam parę różnych... hehehe Odpowiedz z cytatem

Gość




Zegar graficzny
Kod:
<img src="/scripts/zegar_graficzny/digitblank.gif" border=0 name="hourstens"><img src="/scripts/zegar_graficzny/digitblank.gif" border=0 name="hoursones"><img
src="/scripts/zegar_graficzny/digitblank.gif" border=0 name="colon"><img src="/scripts/zegar_graficzny/digitblank.gif" border=0 name="minstens"><img
src="/scripts/zegar_graficzny/digitblank.gif" border=0 name="minsones"><img src="/scripts/zegar_graficzny/digitblank.gif" border=0 name="ampm">

<SCRIPT LANGUAGE="JavaScript">

  if (document.images) {
    digit1 = new Image;
    digit1.src = "/scripts/zegar_graficzny/digit1.gif";
   digit2 = new Image;
    digit2.src = "/scripts/zegar_graficzny/digit2.gif";
   digit3 = new Image;
    digit3.src = "/scripts/zegar_graficzny/digit3.gif";
   digit4 = new Image;
    digit4.src = "/scripts/zegar_graficzny/digit4.gif";
   digit5 = new Image;
    digit5.src = "/scripts/zegar_graficzny/digit5.gif";
   digit6 = new Image;
    digit6.src = "/scripts/zegar_graficzny/digit6.gif";
   digit7 = new Image;
    digit7.src = "/scripts/zegar_graficzny/digit7.gif";
   digit8 = new Image;
    digit8.src = "/scripts/zegar_graficzny/digit8.gif";
   digit9 = new Image;
    digit9.src = "/scripts/zegar_graficzny/digit9.gif";
   digit0 = new Image;
    digit0.src = "/scripts/zegar_graficzny/digit0.gif";
   digitam = new Image;
    digitam.src = "/scripts/zegar_graficzny/digitam.gif";
   digitpm = new Image;
    digitpm.src = "/scripts/zegar_graficzny/digitpm.gif";
   digitcolon = new Image;
   digitcolon.src = "/scripts/zegar_graficzny/digitcolon.gif";
   digitblank = new Image;
   digitblank.src = "/scripts/zegar_graficzny/digitblank.gif";
   }
   
function UpdateClock(){
    var time= new Date();
    hours = time.getHours();
    mins = time.getMinutes();
    if (!document.images) return;
   digit = mins % 10;
    document.images.minsones.src=eval("digit"+digit+".src");
   digit = (mins - (mins % 10))/10;
   document.images.minstens.src=eval("digit"+digit+".src");
   if (hours > 12)
     document.images.ampm.src=digitpm.src;
   else
     document.images.ampm.src=digitam.src;
   if (hours > 12) hours = hours - 12;
   digit = hours % 10;
   document.images.hoursones.src=eval("digit"+digit+".src");
   digit = (hours - (hours % 10))/10;
   document.images.hourstens.src=eval("digit"+digit+".src");
   document.images.colon.src=digitcolon.src;
   setTimeout("UpdateClock()",30000);
  }
   UpdateClock();
</SCRIPT>


Zegar graficzny z sekundami
Uwaga! Strona musi mieć z znaczniku BODY funkcje OnLoad=show3()
Kod:
<script language="javascript1.1">
<!-- //By George Chiang
var dn
c1=new Image(); c1.src="/scripts/zegar_graficzny_z_sekundami/c1.gif"
c2=new Image(); c2.src="/scripts/zegar_graficzny_z_sekundami/c2.gif"
c3=new Image(); c3.src="/scripts/zegar_graficzny_z_sekundami/c3.gif"
c4=new Image(); c4.src="/scripts/zegar_graficzny_z_sekundami/c4.gif"
c5=new Image(); c5.src="/scripts/zegar_graficzny_z_sekundami/c5.gif"
c6=new Image(); c6.src="/scripts/zegar_graficzny_z_sekundami/c6.gif"
c7=new Image(); c7.src="/scripts/zegar_graficzny_z_sekundami/c7.gif"
c8=new Image(); c8.src="/scripts/zegar_graficzny_z_sekundami/c8.gif"
c9=new Image(); c9.src="/scripts/zegar_graficzny_z_sekundami/c9.gif"
c0=new Image(); c0.src="/scripts/zegar_graficzny_z_sekundami/c0.gif"
cb=new Image(); cb.src="/scripts/zegar_graficzny_z_sekundami/cb.gif"
cam=new Image(); cam.src="/scripts/zegar_graficzny_z_sekundami/cam.gif"
cpm=new Image(); cpm.src="/scripts/zegar_graficzny_z_sekundami/cpm.gif"
function extract(h,m,s,type){
if (!document.images)
return
if (h<=9){
document.images.a.src=cb.src
document.images.b.src=eval("c"+h+".src")
}
else {
document.images.a.src=eval("c"+Math.floor(h/10)+".src")
document.images.b.src=eval("c"+(h%10)+".src")
}
if (m<=9){
document.images.d.src=c0.src
document.images.e.src=eval("c"+m+".src")
}
else {
document.images.d.src=eval("c"+Math.floor(m/10)+".src")
document.images.e.src=eval("c"+(m%10)+".src")
}
if (s<=9){
document.g.src=c0.src
document.images.h.src=eval("c"+s+".src")
}
else {
document.images.g.src=eval("c"+Math.floor(s/10)+".src")
document.images.h.src=eval("c"+(s%10)+".src")
}
if (dn=="AM") document.j.src=cam.src
else document.images.j.src=cpm.src
}
function show3(){
if (!document.images)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
dn="AM"
if ((hours>=12)&&(minutes>=1)||(hours>=13)){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
extract(hours,minutes,seconds,dn)
setTimeout("show3()",1000)
}
//-->
</script>

<img src="/scripts/zegar_graficzny_z_sekundami/cb.gif" name="a" width="16" height="21">
<img src="/scripts/zegar_graficzny_z_sekundami/cb.gif" name="b">
<img src="/scripts/zegar_graficzny_z_sekundami/colon.gif" name="c">
<img src="/scripts/zegar_graficzny_z_sekundami/cb.gif" name="d">
<img src="/scripts/zegar_graficzny_z_sekundami/cb.gif" name="e" width="16" height="21">
<img src="/scripts/zegar_graficzny_z_sekundami/colon.gif" name="f">
<img src="/scripts/zegar_graficzny_z_sekundami/cb.gif" name="g" width="16" height="21">
<img src="/scripts/zegar_graficzny_z_sekundami/cb.gif" name="h" width="16" height="21">
<img src="/scripts/zegar_graficzny_z_sekundami/cam.gif" name="j">


Zegar analogowy (dość duży...
Uwaga! Strona musi mieć z znaczniku BODY funkcje OnLoad=setTimeout('ptRel()',1);" onUnload="finRel();
Kod:
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<object id=VMLRender classid="CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E"></object>
<style>
  v\:* {behavior:url(#VMLRender);}
</style>
<script>
  var idRel;
  var radDg = Math.PI / 30;
  function finRel(){
    clearTimeout();
  }
  function ptRel(){
    var d = new Date();
    var r;
    var ta = d.getSeconds()+ d.getMilliseconds() / 1000;
    var ang = (ta - 15) * radDg;
    var x = Math.floor(40 * Math.cos (ang));
    var y = Math.floor(40 * Math.sin (ang));
    document.all("seg").adj.value = x + ',' + y;
    ta = d.getMinutes() + ta / 60;
    ang = (ta - 15) * radDg;
    var x = Math.floor(40 * Math.cos (ang));
    var y = Math.floor(40 * Math.sin (ang));
    document.all("min").adj.value = x + ',' + y;
    ta = (d.getHours() % 12) + ta / 60;
    ang = (5 * ta - 15) * radDg;
    var x = Math.floor(30 * Math.cos (ang));
    var y = Math.floor(30 * Math.sin (ang));
    document.all("hrs").adj.value = x + ',' + y;
    setTimeout("ptRel()",1);
  }
</script><v:shapetype id="prueba" coordsize="100,100" path="m 50,50 l @0,@1 e">
    <v:stroke endcap="round" />
    <v:formulas>
      <v:f eqn="sum 50 #0 0" />
      <v:f eqn="sum 50 #1 0" />
    </v:formulas>
  </v:shapetype>
</v:shapetype>
  <v:group style="width: 400px; height: 400px" coordsize="100,100">
    <v:oval style="width: 100; height: 100" />
    <v:oval style="width: 2; height: 2; left: 49; top:  1" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 97; top: 49" fillcolor="#c0c000" />   
    <v:oval style="width: 2; height: 2; left:  1; top: 49" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 49; top: 97" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left:  8; top: 25" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 73; top:  8" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 25; top:  8" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 90; top: 25" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left:  8; top: 73" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 25; top: 90" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 73; top: 90" fillcolor="#c0c000" />
    <v:oval style="width: 2; height: 2; left: 90; top: 73" fillcolor="#c0c000" />
    <v:oval style="top:  5; left:  5; width: 90; height: 90" >
   <v:fill type="gradient" method="linear sigma" color="#ccc"  angle="0" focus="50%"/>
    </v:oval>
    <v:shape id="hrs" type="#prueba" style="top:0; left: 0; width: 100; height: 100" adj="0,0" strokeweight="2pt" />
    <v:shape id="min" type="#prueba" style="top:0; left: 0; width: 100; height: 100" adj="0,0" strokeweight="2pt" />
    <v:shape id="seg" type="#prueba" style="top:0; left: 0; width: 100; height: 100" adj="0,0" strokecolor="#f00" />
  </v:group>


Zegar analogowy podążający za myszką
Kod:
<SCRIPT language=JavaScript>
dCol='green';//date colour.
fCol='Blue';//face colour.
sCol='red';//seconds colour.
mCol='black';//minutes colour.
hCol='black';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;

//Alter nothing below! Alignments will be lost!

d=new Array("Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota");
m=new Array("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","PaŸdziernik","Listopad","Grudzień");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
font='Arial CE';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?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){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
 var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
 F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
 F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
 }
for (i=0; i < H.length; i++){
 var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
 HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
 HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
 }
for (i=0; i < M.length; i++){
 var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
 ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
 ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
 }
for (i=0; i < S.length; i++){
 var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
 SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
 SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
 }
for (i=0; i < D.length; i++){
 var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
 DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
 DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
 }
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>

To jush chyba wszystko... Smile
Mam tylko 14 lat....
Powrót do góry
Radh
PostWysłany: Czw Sty 01, 1970 12:00 am    Temat postu: Re: Ja dam parę różnych... hehehe Odpowiedz z cytatem

@Administrator
Administrator


Dołączył: 30 Cze 2002
Pochwał: 1
Posty: 740
Skąd: Gdańsk

TRINITY napisał:

Mam tylko 14 lat....

jak na 14-latka to duzo juz potrafisz Smile
_________________
Radh
Powrót do góry
Ogląda profil użytkownika Wyślij prywatną wiadomość Wyślij email Odwiedź stronę autora
Wyświetl posty z ostatnich:   
Napisz nowy temat  Odpowiedz do tematu Strona 1 z 1

Skocz do:  



Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


DAJ Glass (1.0.8) template by Dustin Baccetti
EQ graphic based off of a design from www.freeclipart.nu
Powered by phpBB © 2001, 2005 phpBB Group