Thread View: fj.lang.javascript
2 messages
2 total messages
Started by Werner
Mon, 24 Nov 1997 00:00
Help!
Author: Werner
Date: Mon, 24 Nov 1997 00:00
Date: Mon, 24 Nov 1997 00:00
77 lines
3414 bytes
3414 bytes
Is there something wrong with this cause it won't work!
</SCRIPT>
<p>
<Script>
<!-- Activate Cloaking
var expdate = new Date();
var visits;
// Set expiration date to a year from now.
expdate.setTime(expdate.getTime() + (48 * 60 * 60 * 1000 * 365));
if(!(visits = GetCookie("visits")))
visits = 0;
visits++;
SetCookie("visits", visits, expdate, "/", null, false);
document.write("<center><STRONG>"+"I See that You have been to this page
"+" "+"<STRONG>"+visits+"</STRONG></FONT>"+" <STRONG>"+"time(s) so
far!"+"</STRONG></center>");
if(visits == 1)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+" Oh,
your first time here!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits == 2)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"
You've been here already!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits == 3)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+" A
third time!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits == 4)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"Geez!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits == 5)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"Cool!
You must really like my site!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits == 6)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+" All
Right, All RIGHT Already!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits == 7)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"Okay!
You can go now!!!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits== 8)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"Hello?
Do you speak English? (If not you won't be able to read this DUH!)"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits== 9)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+" Do
you ever sleep?"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits==10)
document.write("<FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"Are
you really bored or something? "
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits==12)
document.write("<P><FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"
Don't you have something better to do then press the reload button 13
times?"
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits==13)
document.write("<p><FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"
Internet stlakers...a new type of crime! "
+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits==14)
document.write("<p><FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+Go
Away!!"+"</BLINK></STRONG></CENTER></EM></FONT>");
if(visits>=15)
document.write("<p><FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+"You
must really like my site...uh...yeah...CYBER-POLICE!!!!"
+"</BLINK></STRONG></CENTER></EM></FONT>");
// De-activate Cloaking -->
</Script>
<br>
Re: Help!
Author: Shuichi Atsuta
Date: Fri, 28 Nov 1997 00:00
Date: Fri, 28 Nov 1997 00:00
21 lines
870 bytes
870 bytes
Hello,
Werner wrote:
>
> Is there something wrong with this cause it won't work!
>
> </SCRIPT>
Do you have "<SCRIPT>"tag before "</SCRIPT>"
and user definition for "GetCookie" function ? (^o^)
> document.write("<p><FONT SIZE=+1><EM><CENTER><STRONG><BLINK>"+Go
> Away!!"+"</BLINK></STRONG></CENTER></EM></FONT>");
You may forget " in the line.
.....<BLINK>"+"Go Away!!"........
And I have no problem for your script.
thanks.
--
Shuichi Atsuta
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads