-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contact.html
174 lines (92 loc) · 2.42 KB
/
Contact.html
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
<!DOCTYPE html>
<html lang=en-US">
<head>
<title>Contact forms </title>
<script type="text/javascript">
var num;
var temp=0;
var speed=5000; /* this is set for 5 seconds, edit value to suit requirements */
var preloads=[];
/* add any number of images here */
preload(
'pic.jpg',
'pic2.jpg',
'pic3.jpg',
'pic4.jpg'
);
function preload(){
for(var c=0;c<arguments.length;c++) {
preloads[preloads.length]=new Image();
preloads[preloads.length-1].src=arguments[c];
}
}
function rotateImages() {
num=Math.floor(Math.random()*preloads.length);
if(num==temp){
rotateImages();
}
else{
document.body.style.backgroundImage='url('+preloads[num].src+')';
temp=num;
setTimeout(function(){rotateImages()},speed);
}
}
if(window.addEventListener){
window.addEventListener('load',function(){setTimeout(function(){rotateImages()},speed)},false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',function(){setTimeout(function(){rotateImages()},speed)});
}
}
</script>
</head>
<body>
<link rel="stylesheet" href="Backend.css" style="background-size:1600px 750px" >
<div id="header">
<h1>Store Contact form </h1>
<img src="DEV.gif" width="200" height="100" id="g" >
</div>
<form autocomplete="off" name="contactform" method="post" action="serv.php">
<table width="450px">
<tr>
<td valign="top">
<label for="To" >To*</label>
</td>
<td valign="top">
<input type="text" name="to" maxlength="50" size="30">
</td>
</tr>
<tr>
<td valign="top"">
<label for="from">From*</label>
</td>
<td valign="top">
<input type="text" name="from" maxlength="50" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="subject">Subject </label>
</td>
<td valign="top">
<input type="text" name="subject" maxlength="80" size="30">
</td>
</tr>
<tr>
<td valign="top" style="text-align:center">
<label for="message">Message*</label>
</td>
<td valign="top">
<textarea name="message" maxlength="1000" cols="25" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
<input type="submit" value="Submit">
</td>
</tr>
</table>
</form>
</html>
</body>