home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 1999 July
/
www_07_1999.iso
/
prez
/
amiga
/
KidHTML1_25.lha
/
KidHTML1.25
/
Script
/
fakecounter.js
< prev
next >
Wrap
Text File
|
1998-08-25
|
666b
|
31 lines
<!-- TWO STEPS TO INSTALL FAKE COUNTER:
1. Paste the coding into the HEAD of your HTML document
2. Copy the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var ran
ran = Math.round(Math.random()*50000)
function alertUser() {
alert("You are visitor number " + ran + " to this page.")
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this last code into the HEAD of your HTML document -->
<BODY>
<CENTER>
<FORM>
<INPUT TYPE="button" VALUE="How many visits?" onClick="alertUser()">
</FORM>
</CENTER>
<!-- Script Size: 0.69 KB -->