1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<title>Highslide JS</title>
9
1 ) Reference to the file containing the javascript.
10
This file must be located on your server.
13
<script type="text/javascript" src="highslide/highslide.js"></script>
17
2) Optionally override the settings defined at the top
18
of the highslide.js file. The parameter hs.graphicsDir is important!
21
<script type="text/javascript">
23
// remove the registerOverlay call to disable the controlbar
27
overlayId: 'controlbar',
28
position: 'top right',
33
hs.graphicsDir = 'highslide/graphics/';
34
hs.outlineType = 'rounded-white';
35
// Tell Highslide to use the thumbnail's title for captions
36
hs.captionEval = 'this.thumb.title';
41
3) These CSS-styles are necessary for the script to work. You may also put
42
them in an external CSS-file. See the webpage for documentation.
45
<style type="text/css">
47
font-family: Verdana, Helvetica;
52
cursor: url(highslide/graphics/zoomin.cur), pointer;
56
.highslide-active-anchor img {
61
border: 2px solid gray;
64
.highslide:hover img {
65
border: 2px solid white;
73
border: 2px solid white;
76
.highslide-image-blur {
82
border: 2px solid white;
84
font-family: Verdana, Helvetica;
87
background-color: white;
94
font-family: sans-serif;
96
text-decoration: none;
98
border: 1px solid black;
99
background-color: white;
101
background-image: url(highslide/graphics/loader.white.gif);
102
background-repeat: no-repeat;
103
background-position: 3px 1px;
106
a.highslide-credits,a.highslide-credits i {
109
text-decoration: none;
113
a.highslide-credits:hover,a.highslide-credits:hover i {
115
background-color: gray;
126
a.highslide-full-expand {
127
background: url(highslide/graphics/fullexpand.gif) no-repeat;
129
margin: 0 10px 10px 0;
134
/* Controlbar example */
136
background: url(highslide/graphics/controlbar4.gif);
144
/*margin: 0px 0 0 4px;*/
148
.controlbar a:hover {
149
background-image: url(highslide/graphics/controlbar4-hover.gif);
152
.controlbar .previous {
158
background-position: -50px 0;
161
.controlbar .highslide-move {
163
background-position: -90px 0;
168
background-position: -130px 0;
171
/* Necessary for functionality */
172
.highslide-display-block {
176
.highslide-display-none {
183
<body style="background-color: silver">
185
4) This is how you mark up the thumbnail image with an anchor tag around it.
186
The anchor's href attribute defines the URL of the full-size image.
187
--> <a id="thumb1" href="images/full6.jpg" class="highslide"
188
onclick="return hs.expand(this)"> <img src="images/thumb6.jpg"
190
title="Caption for the first image. This caption can be styled using CSS."
191
height="80" width="120" /></a> <!-- Repetionion of the above --> <a
192
id="thumb2" href="images/full6.jpg" class="highslide"
193
onclick="return hs.expand(this)"> <img src="images/thumb6.jpg"
194
alt="Highslide JS" title="Caption for the second image." height="80"
195
width="120" /></a> <!--
196
5 (optional). This is the markup for the controlbar. The conrolbar is tied to the expander
197
in the script tag at the top of the file.
199
<div id="controlbar" class="highslide-overlay controlbar"><a
200
href="#" class="previous" onclick="return hs.previous(this)"
201
title="Previous (left arrow key)"></a> <a href="#" class="next"
202
onclick="return hs.next(this)" title="Next (right arrow key)"></a> <a
203
href="#" class="highslide-move" onclick="return false"
204
title="Click and drag to move"></a> <a href="#" class="close"
205
onclick="return hs.close(this)" title="Close"></a></div>
b'\\ No newline at end of file'