зеркало из https://github.com/mozilla/pjs.git
84 строки
2.2 KiB
HTML
84 строки
2.2 KiB
HTML
<!--
|
|
- The contents of this file are subject to the Mozilla Public
|
|
- License Version 1.1 (the "License"); you may not use this file
|
|
- except in compliance with the License. You may obtain a copy of
|
|
- the License at http://www.mozilla.org/MPL/
|
|
-
|
|
- Software distributed under the License is distributed on an "AS
|
|
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
- implied. See the License for the specific language governing
|
|
- rights and limitations under the License.
|
|
-
|
|
- The Original Code is browser-buster.
|
|
-
|
|
- The Initial Developer of the Original Code is Netscape Comm.
|
|
- Inc. Portions created by Netscape are
|
|
- Copyright (C) Netscape. All
|
|
- Rights Reserved.
|
|
-
|
|
- Contributor(s):
|
|
- Chris Hofmann <chofmann@netscape.com>
|
|
-->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>
|
|
JS World.com
|
|
</TITLE>
|
|
</HEAD>
|
|
<!-- BODY BGCOLOR="FFFFFF" TEXT="000000" -->
|
|
<basefont size=2>
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
/*
|
|
|
|
This script was created by the administration
|
|
from www.jsworld.com. Permission is hereby
|
|
granted to use this script freely for any
|
|
commercial or non commercial use, as long as
|
|
this message remains in tact.
|
|
|
|
© 1998 JavaScript World
|
|
All Rights Reserved
|
|
http://www.jsworld.com/
|
|
|
|
*/
|
|
document.write("<FORM><INPUT TYPE=HIDDEN NAME='saved' value='1'></FORM>")
|
|
function welcome()
|
|
{
|
|
if(document.cookie == "")
|
|
{
|
|
var counting = "1";
|
|
var when = new Date()
|
|
document.cookie = "counting=; expires=" + when.toGMTString();
|
|
when.setMonth(when.getMonth() + 1)
|
|
var counting = document.forms[0].saved.value;
|
|
document.cookie = "counting="+counting+" `; expires=" + when.toGMTString()
|
|
document.write("1st page");
|
|
}
|
|
else
|
|
{
|
|
var get = document.cookie;
|
|
get = get.substring((get.indexOf("=")+1),get.length);
|
|
var count = get.split(" ");
|
|
count[0]++
|
|
document.write("pg:"+count[0]+"");
|
|
document.forms[0].saved.value=count[0];
|
|
saveit()
|
|
}
|
|
}
|
|
|
|
|
|
function saveit()
|
|
{
|
|
var when = new Date()
|
|
document.cookie = "counting=; expires=" + when.toGMTString();
|
|
when.setMonth(when.getMonth() + 1)
|
|
var counting = document.forms[0].saved.value;
|
|
document.cookie = "counting="+counting+"; expires=" + when.toGMTString()
|
|
}
|
|
welcome()
|
|
// -->
|
|
</SCRIPT>
|
|
</BODY>
|
|
</HTML>
|