Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 162 Pomógł: 2 Dołączył: 18.01.2008 Ostrzeżenie: (0%)
|
Gdzie jest błąd ? bo nie chcą się te sekundy wyświetlić...
Kod <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> </style> <script type="text/javascript"> function czas{ var data = new Date(); document.write(data.getSeconds()); var cos = setTimeout("czas()",1000); } </script> </head> <body onload="czas()"> </body> </body> </html> |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 781 Pomógł: 256 Dołączył: 29.06.2008 Ostrzeżenie: (0%)
|
Zobacz tak
Kod <script type="text/javascript">
function czas() { var d = new Date(); sekund = (d.getSeconds()); minut = (d.getMinutes()); godzin = (d.getHours()); document.getElementById('tutaj').innerHTML = 'Czas '+godzin+' '+minut+' '+sekund+''; } window.setInterval(czas,1000); </script> <div id="tutaj"></div> Ten post edytował kefirek 3.12.2008, 21:58:58 |
|
|
|
stirith [JS]Zegarek 3.12.2008, 18:56:01
erix Cytatdocument.write(data.getSeconds());
Ta instruk... 3.12.2008, 18:58:44
stirith szczerze to popatrzyłem na to...i dalej nie kumam.... 3.12.2008, 19:01:56
erix Odświeżanie rób tak samo, jak do tej pory, ale NIE... 3.12.2008, 19:07:51 ![]() ![]() |
|
Aktualny czas: 27.12.2025 - 20:33 |