-
Notifications
You must be signed in to change notification settings - Fork 0
/
background.js
77 lines (57 loc) · 1.57 KB
/
background.js
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
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!
theImages[0] = '100.jpg'
theImages[1] = '200.jpg'
theImages[2] = '300.jpg'
theImages[3] = '400.jpg'
theImages[4] = '500.jpg'
theImages[5] = '600.jpg'
theImages[6] = '700.jpg'
theImages[7] = '800.jpg'
theImages[8] = '100.jpg'
theImages[9] = '1000.jpg'
theImages[10] = '1100.jpg'
theImages[11] = '1200.jpg'
theImages[12] = '1300.jpg'
theImages[13] = '1400.jpg'
theImages[14] = '1500.jpg'
theImages[15] = '1600.jpg'
theImages[16] = '1700.jpg'
theImages[17] = '1800.jpg'
theImages[18] = '1900.jpg'
theImages[19] = '2000.jpg'
// ======================================
// do not change anything below this line
// ======================================
var j = 0;
var p = theImages.length;
var url;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
/* var foo;
foo.onclick = function () {
window.open('http://aceinsight.websense.com/',"_blank");
};
*/
function tweetbg() {
window.open("http://www.w3schools.com");
}
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
//-->
showImage();