-
Notifications
You must be signed in to change notification settings - Fork 144
/
basic-example-customized.html
executable file
·43 lines (35 loc) · 1.37 KB
/
basic-example-customized.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>DHTML SnowStorm: Basic Example</title>
<script type="text/javascript" src="snowstorm.js"></script>
<script type="text/javascript">
snowStorm.snowColor = '#99ccff'; // blue-ish snow!?
snowStorm.flakesMaxActive = 96; // show more snow on screen at once
snowStorm.useTwinkleEffect = true; // let the snow flicker in and out of view
</script>
</head>
<body style="background:#336699;font:100 1.75em helvetica neue, helvetica,arial,verdana,sans-serif;color:#fff">
<h1 style="font-size:2em;margin:0px;font-weight:100">Example SnowStorm page</h1>
<p>
A single Javascript reference in the <head> tag is required for SnowStorm to work.
</p>
<p>
As well, some customized options are specified which override the SnowStorm defaults.
</p>
<p>
View the source of this page for reference.
</p>
<pre style="color:#99ccff">
<!-- required, default behaviour -->
<script src="snowstorm.js"></script>
<!-- now, we'll customize the snowStorm object -->
<script>
snowStorm.snowColor = '#99ccff'; // blue-ish snow!?
snowStorm.flakesMaxActive = 96; // show more snow on screen at once
snowStorm.useTwinkleEffect = true; // let the snow flicker in and out of view
</script>
</pre>
</body>
</html>