#!/COMMUNITY
Members: 5187
davon online: 1
weitere User: 15
07.01.2009 / 05:26
Community-Member werden
|
Paßwort vergessen
|
OnlineMonitor (1)
Perl-Archiv
Forum
Javascript
Home
PERLscripts
PHPscripts
JAVAscripts
Hilfreiches
Links2www
Newscenter
Community
Interna
Javascript
Archivübersicht
Tutorials
Zum Forum
JS-Links
BuchTipps
WebForen
Forenübersicht
Neueste Themen
Ohne Antwort
Aktivste Themen
Themensuche
Forenarchiv
Newsgroups
Sehenswertes
Kontaktlinsen
EP:Netshop
Bondtravel
Babywalz Shop
Conrad.de
Reifen Shop
Reisen
Uhren-Schmuck
Walbusch
Web-Consulting
Kabel-Shop
Büromöbel
Webhosting
Javascript » Datum » Uhrzeit im Text
zur Übersicht
Kategorie
Datum
Bezeichnung
Uhrzeit im Text
ScriptDemo
Neues Fenster für Demo öffnen
Statistik
16132 Aufrufe davon 1x gestern
Keine Beschreibung vorhanden.
Javascript-Quellcode
(einfach markieren, kopieren und lokal abspeichern)
<script> // CREDITS: // Inline clock: fits anywhere into any text // by Urs Dudli and Peter Gehrig // Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.24fun.com // info@24fun.com // 7/5/2001 // IMPORTANT: // If you add this script to a script-library or a script-archive // you have to insert a link to http://www.24fun.com // right into the webpage where the script will be displayed. // CONFIGURATION: // Go to http://www.24fun.com, open category 'date' and // download the ZIP-file of this script containing // the script-file with step-by-step instructions for easy configuration var clockid=new Array() var clockidoutside=new Array() var i_clock=-1 var thistime= new Date() var hours=thistime.getHours() var minutes=thistime.getMinutes() var seconds=thistime.getSeconds() if (eval(hours) <10) {hours="0"+hours} if (eval(minutes) < 10) {minutes="0"+minutes} if (seconds < 10) {seconds="0"+seconds} var thistime = hours+":"+minutes+":"+seconds function writeclock() { i_clock++ if (document.all || document.getElementById || document.layers) { clockid[i_clock]="clock"+i_clock document.write("<font family=arial size=2><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>") } } function clockon() { thistime= new Date() hours=thistime.getHours() minutes=thistime.getMinutes() seconds=thistime.getSeconds() if (eval(hours) <10) {hours="0"+hours} if (eval(minutes) < 10) {minutes="0"+minutes} if (seconds < 10) {seconds="0"+seconds} thistime = hours+":"+minutes+":"+seconds if (document.all) { for (i=0;i<=clockid.length-1;i++) { var thisclock=eval(clockid[i]) thisclock.innerHTML=thistime } } if (document.getElementById) { for (i=0;i<=clockid.length-1;i++) { document.getElementById(clockid[i]).innerHTML=thistime } } var timer=setTimeout("clockon()",1000) } window.onload=clockon </script> <table border="0"> <tr> <td><font face="Arial" size="2" color="#000000">Es ist <script>writeclock()</script> Uhr</font></td> </tr> <tr> <td><font face="Arial" size="2" color="#000000">Diese Digitaluhr verschmilzt mit dem Text <script>writeclock()</script> und zeigt stets die aktuelle Uhrzeit an. Die Uhr übernimmt die Uhrzeit vom PC des Besuchers.<script>writeclock()</script></font></td> </tr> </table>
Kommentare zu
Uhrzeit im Text
0 Kommentar(e) vorhanden / Anzeige der neuesten 5
Noch keine Kommentare zu diesem Javascript vorhanden.
Alle Kommentare anzeigen
-
Kommentar hinzufügen
© PERL/CGI/
PHP
/JS/SCRIPT/unity.de 1998-2008 .::.
interaktiv.shop
.::.
CGI-Service
.::.
Kontakt
.::.
Impressum
Link: /javascript/scripts/javascript_0269_main.shtml .::. Aufrufe heute: 1 .::. Aufrufe gesamt: 12005