bernard
authored
|
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:lightbox="http://richfaces.org/sandbox/lightbox"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<head>
<title>Lightbox sample</title>
<style type="text/css">
#gallery ul {
list-style: none outside none;
}
#gallery ul li {
display: inline;
}
#gallery ul img {
border: 5px solid #3E3E3E;
border-bottom-width: 20px;
}
#gallery ul a:hover img {
border: 5px solid #000;
border-bottom-width: 20px;
color: #FFFFFF;
}
#gallery ul a:hover {
color: #FFFFFF;
}
</style>
</head>
<body>
<ui:include src="menu.xhtml"/>
<div id="gallery">
<ul>
<li>
<a href="photos/image1.jpg" title="Blue flower">
<h:graphicImage value="photos/thumb_image1.jpg"/>
</a>
</li>
<li>
<a href="photos/image2.jpg" title="Red leafs">
<h:graphicImage value="photos/thumb_image2.jpg"/>
</a>
</li>
<li>
<a href="photos/image3.jpg" title="Rain drops">
<h:graphicImage value="photos/thumb_image3.jpg"/>
</a>
</li>
<li>
<a href="photos/image4.jpg" title="Fresh green">
<h:graphicImage value="photos/thumb_image4.jpg"/>
</a>
</li>
<li>
<a href="photos/image5.jpg" title="More fresh green">
<h:graphicImage value="photos/thumb_image5.jpg"/>
</a>
</li>
</ul>
</div>
<lightbox:lightbox id="lightbox" selector="#gallery a" containerBorderSize="#{config.containerBorderSize}"
containerResizeSpeed="#{config.containerResizeSpeed}" keyToClose="#{config.keyToClose}"
keyToNext="#{config.keyToNext}" keyToPrev="#{config.keyToPrev}"
overlayBgColor="#{config.overlayBgColor}"
overlayOpacity="#{config.overlayOpacity}" txtImage="#{config.txtImage}" txtOf="#{config.txtOf}"
imageBlank="#{config.imageBlank}"
imageBtnClose="#{config.imageBtnClose}"
imageBtnNext="#{config.imageBtnNext}"
imageBtnPrev="#{config.imageBtnPrev}"
imageLoading="#{config.imageLoading}"
/>
<h:form id="lightboxForm">
<h:panelGrid columns="3">
<h:outputLabel value="containerBorderSize" for="containerBorderSize"/>
<h:inputText id="containerBorderSize" value="#{config.containerBorderSize}"/>
<h:message for="containerBorderSize"/>
<h:outputLabel value="containerResizeSpeed" for="containerResizeSpeed"/>
<h:inputText id="containerResizeSpeed" value="#{config.containerResizeSpeed}"/>
<h:message for="containerResizeSpeed"/>
<h:outputLabel value="keyToClose" for="keyToClose"/>
<h:inputText id="keyToClose" value="#{config.keyToClose}"/>
<h:message for="keyToClose"/>
<h:outputLabel value="keyToNext" for="keyToNext"/>
<h:inputText id="keyToNext" value="#{config.keyToNext}"/>
<h:message for="keyToNext"/>
<h:outputLabel value="" for="keyToPrev"/>
<h:inputText id="keyToPrev" value="#{config.keyToPrev}"/>
<h:message for="keyToPrev"/>
<h:outputLabel value="overlayBgColor" for="overlayBgColor"/>
<h:inputText id="overlayBgColor" value="#{config.overlayBgColor}"/>
<h:message for="overlayBgColor"/>
<h:outputLabel value="overlayOpacity" for="overlayOpacity"/>
<h:inputText id="overlayOpacity" value="#{config.overlayOpacity}"/>
<h:message for="overlayOpacity"/>
<h:outputLabel value="txtImage" for="txtImage"/>
<h:inputText id="txtImage" value="#{config.txtImage}"/>
<h:message for="txtImage"/>
<h:outputLabel value="txtOf" for="txtOf"/>
<h:inputText id="txtOf" value="#{config.txtOf}"/>
<h:message for="txtOf"/>
<h:outputLabel value="imageBlank" for="imageBlank"/>
<h:inputText id="imageBlank" value="#{config.imageBlank}"/>
<h:message for="imageBlank"/>
<h:outputLabel value="imageBtnClose" for="imageBtnClose"/>
<h:inputText id="imageBtnClose" value="#{config.imageBtnClose}"/>
<h:message for="imageBtnClose"/>
<h:outputLabel value="imageBtnNext" for="imageBtnNext"/>
<h:inputText id="imageBtnNext" value="#{config.imageBtnNext}"/>
<h:message for="imageBtnNext"/>
<h:outputLabel value="imageBtnPrev" for="imageBtnPrev"/>
<h:inputText id="imageBtnPrev" value="#{config.imageBtnPrev}"/>
<h:message for="imageBtnPrev"/>
<h:outputLabel value="imageLoading" for="imageLoading"/>
<h:inputText id="imageLoading" value="#{config.imageLoading}"/>
<h:message for="imageLoading"/>
<a4j:commandButton value="Submit" reRender="lightbox,lightboxForm"/>
</h:panelGrid>
</h:form>
<rich:insert src="/sample_1.xhtml" highlight="html"/>
</body>
</html>
|