PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
************* BEGIN TOPMSG.HTML *************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
	<head>
	  <link rel="shortcut icon" href="favicon.ico">
		<meta name="keywords" content="zpcs, halfwatt, illuminations, curious, minds, reserved, zardoz, madison">
		<meta name="description" content="update, ZARDOZ Personal Computer Solutions (ZPCS)">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>ZPCS TOPMSG</title><!-- Author: Douglas (ZPCS)  -->
			<!-- Created: AUGUST 6, 2009  -->
			<!-- Modified: AUGUST 6, 2009 (ZPCS) -->
			<!-- not yet Validated HTML 4.01 02AUG09: http://validator.w3.org/#validate_by_uri+with_options  -->
			<!-- Copyright ZPCS 2009 All Right(s) Reserved.  -->
			<!-- http://zpcs.uuuq.com/js/topmsg/topmsg.html -->
			<!-- <link rel="STYLESHEET" href="topmsg.css" type="text/css"> -->
			<script type="text/javascript" src="starttime.js">
			</script>
			<!-- <script type="text/javascript" src="../js/topmsg/topmsg.js">
			</script> -->
	</head>
	
	<body bgcolor="#FFFFFF" onload="startTime()">
	<!-- <body bgcolor="#FFFFFF"> -->
	<div>
		<!-- <script type="text/javascript" src="starttime.js">
		</script> -->
		</div>
		
		<div id="txt">
			<script type="text/javascript" src="comtime.js">
			</script>
		
			<div id="txt2">
			</div>
		
			<div id="txt3">
				<script type="text/javascript" src="datetime.js">
				</script>
			</div>
		</div>
		
		<!-- <script type="text/javascript" src="http://zpcs.uuuq.com/js/topmsg/topmsg.js"> -->
		<script type="text/javascript" src="http://zpcs.uuuq.com/js/topmsg/topmsg.js">
		//Learned it from dynamicdrive.com
		</script>
	</body>
</html>
************* END TOPMSG.HTML *************
**********************************************************************************
************* BEGIN TOPMSG.JS *************
//enter the message you wish to be shown, including html tags
var message='<div id="footer">work u javascript</div>'

//enter a color name or hex to be used as the background color of the message
var backgroundcolor="#FFFF8A"

//enter 1 for always display, 2 for ONCE per browser session
var displaymode=1

//Set duration message should appear on screen, in seconds (10000=10 sec, 0=perpetual)
var displayduration=0

//enter 0 for non-flashing message, 1 for flashing
var flashmode=0
//if above is set to flashing, enter the flash-to color below
var flashtocolor="lightyellow"


///////////////do not edit below this line////////////////////////////////////////
var ie=document.all
var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1

function regenerate(){
						window.location.reload()
						}

function regenerate2(){
						if (document.layers)
							setTimeout("window.onresize=regenerate",400)
						}
						var which=0

function flash(){
					if (which==0)
					{
						if (document.layers)
							topmsg_obj.bgColor=flashtocolor
							else
								{
									topmsg_obj.style.backgroundColor=flashtocolor
								
								}
								var which=1
					}
					else
						{
							if (document.layers)
								topmsg_obj.bgColor=backgroundcolor
								else
									{
										topmsg_obj.style.backgroundColor=backgroundcolor
									}
									var which=0
						}
				}

				if (ie||document.getElementById)
						{
							document.write('<div id="footer" style="position:absolute;visibility:visible">'+message+'</div>')
							var topmsg_obj=ie? document.all.topmsg : document.getElementById? document.getElementById("topmsg") : document.topmsg
						}

function positionit(){
						var dsocleft=ie? document.body.scrollLeft : pageXOffset
						var dsoctop=ie? document.body.scrollTop : pageYOffset
						var window_width=ieNOTopera? document.body.clientWidth : window.innerWidth-20
						var window_height=ieNOTopera? document.body.clientHeight : window.innerHeight

						if (ie||document.getElementById)
							{
								topmsg_obj.style.left=parseInt(dsocleft)+window_width/2-topmsg_obj.offsetWidth/2
								topmsg_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-topmsg_obj.offsetHeight-4
							}
						else if (document.layers)
							{
								topmsg_obj.left=dsocleft+window_width/2-topmsg_obj.document.width/2
								topmsg_obj.top=dsoctop+window_height-topmsg_obj.document.height-5
							}
					}

function setmessage(){
						if (displaymode==2&&(!display_msg_or_not()))
							return
								if (document.layers)
								{
									topmsg_obj=new Layer(window.innerWidth)
									topmsg_obj.bgColor=backgroundcolor
									regenerate2()
									topmsg_obj.document.write(message)
									topmsg_obj.document.close()
									positionit()
									topmsg_obj.visibility="show"
									if (displayduration!=0)
										{
											setTimeout("topmsg_obj.visibility='hide'",displayduration)
										}
								}
								else
								{
									positionit()
									topmsg_obj.style.backgroundColor=backgroundcolor
									topmsg_obj.style.visibility="visible"
									if (displayduration!=0)
										setTimeout("topmsg_obj.style.visibility='visible'",displayduration)
								}
								setInterval("positionit()",100)
								if (flashmode==1)
									setInterval("flash()",1000)
						}

function get_cookie(Name) {
							var search = Name + "="
							var returnvalue = ""
							if (document.cookie.length > 0)
								{
									offset = document.cookie.indexOf(search)
									if (offset != -1)
										{
											offset += search.length
											end = document.cookie.indexOf(";", offset)
											if (end == -1)
												{
													end = document.cookie.length;
													returnvalue=unescape(document.cookie.substring(offset, end))
												}
										}
								}
								return returnvalue;
						}

function display_msg_or_not(){
								if (get_cookie("displaymsg")=="")
									{
										document.cookie="displaymsg=yes"
										return true
									}
									else
										return false
							}

							if (document.layers||ie||document.getElementById)
									document.onload=setmessage

************* END TOPMSG.JS *************
**********************************************************************************
************* BEGIN STARTTIME.JS *************

function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
h=checkTime(h);
m=checkTime(m);
s=checkTime(s);
document.getElementById('txt2').innerHTML=h+":"+m+":"+s;
t=setTimeout('startTime()',500);
}

function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
}

************* END STARTIME.JS *************
**********************************************************************************
************* BEGIN COMTIME.JS *************

<!-- function comTime() -->
var d = new Date();
var time = d.getHours();
if (time<2) 
{
document.write("I see you're burning the midnight oil, it's");
}
else if (time<4) 
{
document.write("The day's wee hours, it's");
}
else if (time<5) 
{
document.write("Early birds get the worm! It's");
}
else if (time<6) 
{
document.write("Ahh, Another wondrous day beckons from the cool of the day, it's");
}
else if (time<7) 
{
document.write("Time to meet the day, it's");
}
else if (time<10) 
{
document.write("Good morning, it's");
}
else if (time<11) 
{
document.write("This is a good time for the morning's constitutional, it's");
}
else if (time<13) 
{
document.write("Is it time for todays lunch? It's");
}
else if (time<16) 
{
document.write("Good afternoon, it's");
}
else if (time<18) 
{
document.write("Oh! The traveling home madness. You've got your favorite music - right?, It's");
}
else if (time<20) 
{
document.write("Good evening, it's");
}
else if (time<22) 
{
document.write("Time to wind'er down and set the alarm clock, it's");
}
else
{
document.write("Starting to burn the midnight oil? It's");
}

************* END COMIME.JS *************
**********************************************************************************
************* BEGIN DATETIME.JS *************

<!-- function dateTime() -->
var days = new Array('SUNDAY','MONDAY','TUESDAY','WEDNESDAY','THURSDAY','FRIDAY','SATURDAY');
var months = new Array('JAN','FEB','MAR','APR','MAY','JUNE','JULY','AUG','SEPT','OCT','NOV','DEC');
var d = new Date();
var weekDay = days[d.getDay()];
var month = months[d.getMonth()];
var day = d.getDate();
var year = d.getFullYear();
document.write(weekDay+': '+day+' '+month+' '+year);

************* END DATEIME.JS *************

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)