9 ?; g! s5 d( B
<!--将下列代码复制到<head></head>之间:-->
# P4 A- M' }4 i* N; R/ \+ B' r<SCRIPT>
, C/ [1 E% _+ l" w<!---Activate Cloaking Device
4 K! c- S |8 C$ efunction WinOpen() . X$ p7 j/ T$ q; n$ F# [8 V2 h
{
" v1 [9 y. L9 ~3 H; n$ h alert('\nPage will load to full screen.\n\nUse View/Document Source from menu bar to view source.\n\nClose new window to return to this page. ');
0 I, E- c& h# `' H* R. F3 A! O window.open("http://www.szren.com","DisplayWindow","menubar=yes");
* g ^9 U4 |3 \8 p, t0 q window.open("http://www.szren.com","DisplayWindow","menubar=yes"); // double for Macs
9 y- |) y& q0 R, q, @ }5 M6 J/ P- {/ G, n1 c
//De-activate cloaking-->
' Y- E1 d+ m5 j# C3 _. [</SCRIPT>
$ O+ w9 Y4 ^, n, A) C3 X/ z/ u5 k" c$ Q' B% g
<SCRIPT>
! v9 r# I0 N$ t" i<!--Activate Cloaking Device) H) e7 ?% M$ m1 q2 t- ~. \
// function to load a page
4 r) h9 ~- x$ x5 |- A, J' R8 l// by Timothy (wykb@szren.com)
! l& i, o# i1 Qfunction leapto() ) c8 E. X1 a/ @ x9 x
{6 S! O- q& U4 ?1 ]
window.location="A049.htm"
" `# M- ?& i0 K3 }( p5 Z3 |7 h }: h7 o, ^/ ?" n) h* e. F8 |1 c( s4 w
//De-activate cloaking-->
( [) }. s: R0 i( _. ~, h) f</SCRIPT> H7 Y$ @/ J" N$ M
! D" B' \, c& z
<Script>8 z V) m; @9 W# o7 V4 p- \
8 k1 B% U( U3 O7 b; ^( S
<!-- Activate Cloaking 6 z' Q% A1 [1 E4 T3 q) y" U% M
//
4 r6 Y" R" y. r; c2 f# G1 t// JavaScript to calculate visits using cookies.+ S6 J! t; K( a0 q2 Z! O( m2 n
// Copyright (c) Kenneth Norton, T3 (ken@t3.com)
# R1 N' i0 J0 _0 s' q) O. H//
" Y: L1 j" F4 M/ l b7 b// Public Domain Cookie Functions ) S+ X* V& a/ C4 J2 A1 s+ K
// Written by: Bill Dortch, hIdaho Design (bdortch@netw.com)& W2 D1 \4 e+ D. U
//
4 f* O* S S" P' U% G/ `4 |! d# [+ t3 \( E1 K& E
function getCookieVal (offset)
) ^1 o4 @' U7 _ Y* ]2 e1 P* f {
8 s. h, ?, u7 { var endstr = document.cookie.indexOf (";", offset);
7 H8 j1 [6 Z4 ?) M2 X, N if (endstr == -1)
1 s7 @4 \5 R4 I' t. B endstr = document.cookie.length;9 ~9 J4 e& I! h, O6 X9 ^3 f$ Y1 e
return unescape(document.cookie.substring(offset, endstr));
8 j9 L' O) [" H0 t# Q! { }
. f% n0 r4 P6 ] o1 U& p- e1 h( R7 o& x3 X ]
function GetCookie (name) # w, D$ X- c; @+ d5 B( j+ y
{
& L7 {6 r1 }7 } n& g2 b' ]9 } var arg = name + "=";
. C5 G& d& O$ V* ^+ b4 @0 w) ?$ i var alen = arg.length;
" e3 m) \1 x8 @& m/ g var clen = document.cookie.length;
* k/ o: v1 x" H4 X var i = 0;' I7 m1 i$ E9 B
while (i < clen) 0 ?6 c$ H! s" o; b
{, E) p, `( A9 i6 H
var j = i + alen;$ F0 _8 ~/ q' @
if (document.cookie.substring(i, j) == arg)
7 M6 w* R/ [1 ~5 g* F# `& z" V return getCookieVal (j);
' W' y r/ ^( h9 P* U1 @& }& ^ i = document.cookie.indexOf(" ", i) + 1;
$ D- I) ]% F( r1 c if (i == 0) 6 O0 z1 s6 F3 B2 {5 L; G
break;
6 b/ s j3 X$ r0 d- j5 \+ \ }9 D* ^0 }0 v5 P7 B6 L* ?4 l" t: }
return null;0 v+ L, b! T, {
}
" h! _& d. S' R4 \8 M, ]3 O' S- p- V0 V
function SetCookie (name, value) # x6 H# ~. g" ]- E* j; T
{: N s- i/ [4 @: m3 [! ^1 W
var argv = SetCookie.arguments;3 P$ I5 ~3 Y3 X
var argc = SetCookie.arguments.length;5 Q) k7 R* f/ I
var expires = (2 < argc) ? argv[2] : null;
$ X9 C7 ]% C1 F! I& T var path = (3 < argc) ? argv[3] : null;
- H" z' D. m# V2 h9 L var domain = (4 < argc) ? argv[4] : null;
( O# f/ T- g' h" I& Z6 j var secure = (5 < argc) ? argv[5] : false;7 }" c2 y+ H6 I( W5 C& n
document.cookie = name + "=" + escape (value) +; j2 }- [' t, Y+ P6 L
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +# E& T3 b3 P. ~! E3 e* }
((path == null) ? "" : ("; path=" + path)) +, h8 ~7 g: {0 K5 j
((domain == null) ? "" : ("; domain=" + domain)) +8 X1 O/ Q0 S# x% x4 A
((secure == true) ? "; secure" : "");6 A, f6 i" P: f/ k& D% r
}
|) {* k4 v4 x+ t+ j. n
$ ~4 g# Z( |& \- ^+ x, C0 y1 e. |% ?5 @ j7 ^
7 _* R+ Y% h) ~2 G' D* O
// function to diplay info
) @$ D, _, C8 M, `1 r. G+ p// by Timothy (timothy@essex1.com) % L3 }: }5 w$ L2 d. {% f
function DisplayInfo()
4 g' D5 o1 i7 U- v {
& q$ J4 D: N$ v9 q var expdate = new Date();; Z* b) L! J3 s4 `( r0 \
var visit;
# e6 k% q1 S/ p: E) ~# J; H8 K // Set expiration date to a year from now.% e, Y# | V6 p: b
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); 4 v* ?# H+ P5 o C& v
if(!(visit = GetCookie("visit")))
& r+ ~* `2 r. y" T visit = 0;) u: L! z- @' R5 h* }% X& M
) z5 I- l: ?" Q$ K
visit++;
8 E: ]/ O" R1 Z% q1 f SetCookie("visit", visit, expdate, "/", null, false);, m9 ]6 K& Q+ a5 c* C! u* l5 o% [ s
var message;5 J% \; Y! r1 \( G( [7 p6 Y! L) n
if(visit == 1) - k m8 C" n1 y$ R7 P
message=" 喜相逢,欢迎你的首次光临!";
+ F4 p% \+ J; [$ \* z/ ^* S' o if(visit== 2)
6 R( Z; ]% H# W$ b& c message=" 再回首,接受你的惊鸿一瞥!";1 x0 R. V# I" ]& ]1 A, V8 k
if(visit == 3)
- d$ ]8 L3 Q! t7 N/ P message=" 嗨,老朋友,我们又见面了!";, M3 _3 {1 M% ]2 t/ f9 B. [
if(visit == 4)
4 w4 y1 g) K' n6 T/ n message=" 嘻嘻,我的回头率还是蛮高的吧!";
1 D0 I8 `3 S8 `5 K2 { y) w if(visit == 5)
! h4 }( W0 C% i" y0 i3 Y5 c message=" 难道,挂念我,已成一种习惯?";
) ?: Q5 ?2 V4 Z+ u: A% ~9 O if(visit == 6)
8 Z% M$ i: ?5 H$ g4 r message=" 我真有你想的那么好吗?";9 w/ ]( q% Z8 z0 Y! H, j5 y
if(visit == 7)
/ z: }, x- E, K message=" 上我的网,让别人说去吧!"; 6 C/ @4 p2 |4 B& t6 L. e
if(visit == 8) 3 l' P5 Y1 z+ E5 p
message=" 我只想说,你的问候对我是如此重要!";
% o2 l7 k5 J% O if(visit == 9)' z8 ~; N+ }: I& F- y" g$ j
message=" 我能想到最浪漫的事,就是和你——";
% X; ~% f9 B7 \: x- I* p+ F if(visit >= 10)
3 d/ K3 Z$ W8 I2 N& s) E! B! R message=" 天地合,乃敢与君绝!!!";# U% V4 D% T0 C# D/ \3 L
alert("\n"+"您已经访问本页 \n"
& y# r" M _( E +" "+visit+"\n"3 T$ I& D% d' V
+" 次了."+"\n"+"\n"
5 M& U' b3 C# n* W: U! G7 X +message);
2 |) R8 Y; Y0 ]7 x( q }5 i$ F2 E1 K) z/ U; k+ H
, e& q9 t4 ]1 a" e; _% N// Function to reset counts1 Y* }8 a4 ^7 a% i! H" P+ m
// by Timothy (timothy@essex1.com)
0 r0 ~+ p, F$ P; S* e/ yfunction ResetCounts() ; L0 o T+ D$ `5 i F" ]9 V! O4 c
{) x% u! T$ |( P( k
var expdate = new Date();8 w- k" _2 x! o
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); ! n" ~4 N" y" |* w T
visit = 0;
# j, L; N1 K# M3 U! q, _0 q SetCookie("visit", visit, expdate , "/", null, false);, S/ x; p% M; X0 L# b) }
leapto();
" v2 U" D) g9 |8 z }
# w8 a; K# [ R6 r// De-activate Cloaking -->
; B! i& m' Q/ j3 A8 C# d+ E: ^</Script>
! }) j$ J9 |7 q7 V& \! Y; V% @9 T( H1 ~
<!--将下列代码复制到<body></body>之间:-->
: o' i# b1 j5 Y) X* `9 y- w8 p<BODY onload="DisplayInfo()" BGCOLOR="#ffffff" TEXT="#000000" LINK="#FF0000" VLINK="#8000FF" ALINK="#FFFF00">2 U& c, I1 e# r( V
! s' u+ z5 g! S: r8 _7 g& O
<CENTER><STRONG><EM></FONT><FONT COLOR=0000FF SIZE=+3>欢迎光临本页 </FONT><FONT COLOR=0000FF SIZE=+5># g9 `# N% W7 x
</EM></STRONG></CENTER>
; M9 C" q& f; Z7 W5 N1 I+ T, D/ X5 `<HR WIDTH=370 ALIGN=center SIZE=2>
- n2 M' C5 L, `. h0 X<BR><BR>
) ?8 p) v* ~5 E- Z$ ?+ V( ^2 I0 D# T4 C; q
<FORM>
0 \* x6 p6 ^, z& E ]( ~<CENTER>+ q- h+ Z: r6 G/ R
<TABLE BORDER=0 CELLSPACING=8 CELLPADDING=4 WIDTH=250>
8 V4 s0 s8 N) z9 G</TABLE>
$ f# q$ X1 Q( h ?+ }& L# Q4 n</CENTER>
& ?1 o5 s. T2 W</FORM> |
|