Helion dhtml site
// This script is written by Patrick Meirmans
// If you want to use it, send me an e-mail at mijter@dds.nl
// and be sure to include your URL, I'ld like to see how you used it
// If you have mailed me you are free to change this script
// anyway you like
// by the way, my homepage is at:
// http://www.geocities.com/Nashville/2956/
// You might want to take a look at it.
//skrypt pochodzi z zasobów
//www.dhtml.helion.pl
startday = new Date();
clockStart = startday.getTime();
function initStopwatch()
{
var myTime = new Date();
var timeNow = myTime.getTime();
var timeDiff = timeNow - clockStart;
this.diffSecs = timeDiff/1000;
return(this.diffSecs);
}
function getSecs()
{
var mySecs = initStopwatch();
var mySecs1 = ""+mySecs;
mySecs1= mySecs1.substring(0,mySecs1.indexOf("."));
document.tijd.hiero.value=mySecs1
window.setTimeout('getSecs()',1000);
if (mySecs1==60) {alert("Jesteś tutaj juz minutę :) ...") }
if (mySecs1==333) {alert("Jesteś tutaj już 333 sekundy...") }
if (mySecs1==666) {alert("Jesteś tutaj już 666 sekund ...") }
if (mySecs1==3600) {alert("To już godzina! Śpisz?") }
}
// To get rid of the alerts, you can just delete the three lines above
// or just one or two of them
// Change the 333, 666 and 999 to whatever you like
// For the messages, just change the text between the " "
// to whatever you like,
// Have fun!!
Czas wizyty...[strona główna] [skrypty]
Uwaga! Strona musi mieć z znaczniku BODY funkcje OnLoad=window.setTimeout('getSecs()',1)
Jesteś tutaj już przez:
sekund.
<script>
// This script is written by Patrick Meirmans
// If you want to use it, send me an e-mail at mijter@dds.nl
// and be sure to include your URL, I'ld like to see how you used it
// If you have mailed me you are free to change this script
// anyway you like
// by the way, my homepage is at:
// http://www.geocities.com/Nashville/2956/
// You might want to take a look at it.
//skrypt pochodzi z zasobów
//www.dhtml.helion.pl
startday = new Date();
clockStart = startday.getTime();
function initStopwatch()
{
var myTime = new Date();
var timeNow = myTime.getTime();
var timeDiff = timeNow - clockStart;
this.diffSecs = timeDiff/1000;
return(this.diffSecs);
}
function getSecs()
{
var mySecs = initStopwatch();
var mySecs1 = ""+mySecs;
mySecs1= mySecs1.substring(0,mySecs1.indexOf("."));
document.tijd.hiero.value=mySecs1
window.setTimeout('getSecs()',1000);
if (mySecs1==60) {alert("Jesteś tutaj juz minutę :) ...") }
if (mySecs1==333) {alert("Jesteś tutaj już 333 sekundy...") }
if (mySecs1==666) {alert("Jesteś tutaj już 666 sekund ...") }
if (mySecs1==3600) {alert("To już godzina! Śpisz?") }
}
// To get rid of the alerts, you can just delete the three lines above
// or just one or two of them
// Change the 333, 666 and 999 to whatever you like
// For the messages, just change the text between the " "
// to whatever you like,
// Have fun!!
</script><form name="tijd"><P>
<center>Jesteś tutaj już przez:
<br>
<input size=4 name=hiero>
<br>sekund.
</form>© Wydawnictwo Helion
Wyszukiwarka
Podobne podstrony:
listscript cgi id=48listscript cgi id=33listscript cgi id=40listscript cgi id=6listscript cgi id=24listscript cgi id=38listscript cgi id=25listscript cgi id=20listscript cgi id=47listscript cgi id=15listscript cgi id=49listscript cgi id=39listscript cgi id=36listscript cgi id=51listscript cgi id=12listscript cgi id=30listscript cgi id=26więcej podobnych podstron