Suche eine Uhr für meine HP


  • Snip3r
  • 930 Aufrufe 4 Antworten

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Suche eine Uhr für meine HP

    Hallo,

    ich hoffe das darf man hier so posten... (wenn nicht - bitte kurz bescheid geben)

    Ich suche für meine HP eine Uhr. Am besten wäre eine analoge, die aber drunter noch die Zeit digital anzeigt (für besucher die die Uhr noch nicht können :löl::).
    Hat da jemand was interessantes?

    mfg
    Snip3r
  • Hi,

    Analoge Uhr

    <script type='text/javascript'>
    <!--
    // Farbeinstellungen
    fCol='#000000';//Farbe Ziffernblatt
    sCol='Courier New';//Farbe Sekunden
    mCol='#FF0000';//Farbe Minuten
    hCol='#FF0000';//Farbe Stunden
    ClockHeight=50;
    ClockWidth=50;


    //Ab hier nichts mehr ändern!

    date=new Date();
    day=date.getDate();
    year=date.getYear();
    if (year < 2000) year=year+1900;
    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;
    ie=(document.getElementById);
    Face=Face.split(' ');
    n=Face.length;
    a=size*10;
    ymouse=0;
    xmouse=0;
    scrll=0;
    props="<font face="+font+" size="+size+" color="+fCol+"><B>";
    Split=360/n;
    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=0;x[i]=0;Y[i]=0;X[i]=0;}

    if (ie){
    document.write('<div id="Of" style="position:relative;top:'+ClockHeight+'px;left:'+ClockWidth+'px;"><div style="position:relative">');
    for (i=0; i < n; i++)
    document.write('<div id="ieFace'+i+'" 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:relative;top:'+ClockHeight+'px;left:'+ClockWidth+'px;"><div style="position:relative">');
    for (i=0; i < H.length; i++)
    document.write('<div id="ieHours'+i+'" 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:relative;top:'+ClockHeight+'px;left:'+ClockWidth+'px;"><div style="position:relative">');
    for (i=0; i < M.length; i++)
    document.write('<div id="ieMinutes'+i+'" 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:relative;top:'+ClockHeight+'px;left:'+ClockWidth+'px;"><div style="position:relative">');
    for (i=0; i < S.length; i++)
    document.write('<div id="ieSeconds'+i+'" 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>')
    }

    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;

    for (i=0; i < n; i++){
    var F=document.getElementById('ieFace'+i).style;
    F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll+"px";
    F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180)+"px";
    }
    for (i=0; i < H.length; i++){
    var HL=document.getElementById('ieHours'+i).style;
    HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll+"px";
    HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs)+"px";
    }
    for (i=0; i < M.length; i++){
    var ML=document.getElementById('ieMinutes'+i).style;
    ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll+"px";
    ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min)+"px";
    }
    for (i=0; i < S.length; i++){
    var SL=document.getElementById('ieSeconds'+i).style;
    SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll+"px";
    SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec)+"px";
    }
    currStep-=step;
    }
    function Delay(){
    scrll=0;
    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);
    }
    //-->
    </script>
    <br />
    <div id="kostenlosejavascripts" align="center"><a href="http://www.fotowahl.de/" title="Fotocommunity Fotowahl.de" target="_blank">Zur Fotocommunity Fotowahl.de</a></div>
    <br />
    <script type="text/javascript" src="http://www.kostenlose-javascripts.de/startScript.php?id=471"></script>


    Normale Uhr

    <script type='text/javascript'> <!--
    var curDateTime = new Date();
    var curHour = curDateTime.getHours();
    var curMin = curDateTime.getMinutes();
    var curSec = curDateTime.getSeconds();
    var curTime =
    ((curHour < 10) ? "0" : "") + curHour + ":"
    + ((curMin < 10) ? "0" : "") + curMin + ":"
    + ((curSec < 10) ? "0" : "") + curSec;
    document.write(curTime);
    //-->
    </script>


    Ich hoffe ich konnte helfen :D

    cya FrEeZkiLL