26
26
</ script >
27
27
</ head >
28
28
< body >
29
-
29
+ <!--Introduction and Demo Only -->
30
+ < header class ="intro ">
31
+ < h1 >
32
+ jQuery and CSS Popup Image Lightbox
33
+ </ h1 >
34
+ < p >
35
+ A simple and clean popup window image lightbox based on css and jQuery.
36
+ < br />
37
+ < br />
38
+ < b > Written in:</ b > < i > HTML, CSS, JS</ i > < br >
39
+ < b > Frameworks: </ b > < i > jQuery 3.3.1 & Font Awesome, Animate CSS. </ i >
40
+ </ p >
41
+ < div class ="action ">
42
+ < a class ="btn github " href ="https://github.com/CodeHimBlog/jquery-jside-menu "> Fork on GiHub </ a >
43
+ < a class ="btn down " href ="https://github.com/CodeHimBlog/jquery-jside-menu/archive/master.zip "> Download </ a >
44
+ </ div >
45
+ </ header >
46
+ < main >
47
+ < article >
48
+ < h2 > < small > Popup Lightbox</ small > Main Features</ h2 >
49
+ < ul >
50
+ < li > Simple, clean, light weight and fast.</ li >
51
+ < li > Responsive and attractive design </ li >
52
+ < li > Detect next and previous images.</ li >
53
+ < li > Show status (numbering) for each image.</ li >
54
+ < li > Popup window show the caption of the image detected from alt text.</ li >
55
+ < li > Animate CSS animations supported. </ li >
56
+ < li > Font Awesome Icons for lightbox.</ li >
57
+ </ ul >
30
58
< h2 > jQuery Lightbox Popup Window Example</ h2 >
31
59
< p > Select any image to view the lightbox Popup window. </ p >
32
60
< div class ="img-container ">
@@ -35,15 +63,68 @@ <h2> jQuery Lightbox Popup Window Example</h2>
35
63
< img src ="images/jquery-lightbox-image1.jpg " alt ="Effel Tower "/>
36
64
< img src ="images/jquery-lightbox-image4.jpg " alt ="lightbox image 4 " />
37
65
</ div >
38
-
39
-
40
-
41
-
66
+ < div style ="margin: 0 10px 10px 10px; ">
67
+ < script async src ="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js "> </ script >
68
+ < ins class ="adsbygoogle "
69
+ style ="display:block; text-align:center; "
70
+ data-ad-layout ="in-article "
71
+ data-ad-format ="fluid "
72
+ data-ad-client ="ca-pub-7089100907045419 "
73
+ data-ad-slot ="7782420780 "> </ ins >
74
+ < script >
75
+ ( adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
76
+ </ script >
77
+ </ div >
78
+ < h2 > How to use Popup Lightbox</ h2 >
79
+ < p >
80
+ The popup lightbox is very easy to use in your web projects. The main purpose to develop this lightbox is show images in easy and simple way.
81
+ < br >
82
+ There is no tough job to get it working. Just follow the step by step guide to done.
83
+ </ p >
84
+ < p > 1. Include the popup lightbox javascript and css file into your web project. </ p >
85
+ < pre class ="prettyprint lang-html ">
86
+ <!--Popup Lightbox Js-->
87
+ <script src="js/jquery.popup.lightbox.js"></script>
88
+
89
+ <!--Popup Lightbox CSS-->
90
+ <link href="css/popup-lightbox.css" rel="stylesheet" />
91
+
92
+ </ pre >
93
+ < p >
94
+ 2. Create a image container, whose images should be shown in the popup lightbox. (Optional if you are going to create a gallery).
95
+ </ p >
96
+ < pre class ="prettyprint lang-html ">
97
+ <div class="img-container">
98
+ <img src="images/jquery-lightbox-image2.jpg" alt="lightbox image 2" />
99
+ <img src="images/jquery-lightbox-image3.jpg" alt="lightbox image 3"/>
100
+ <img src="images/jquery-lightbox-image1.jpg" alt="Effel Tower"/>
101
+ <img src="images/jquery-lightbox-image4.jpg" alt="lightbox image 4" />
102
+ </div>
103
+ </ pre >
104
+ < p > 3. Now, initialize the "popupLightbox()" in jQuery document ready function with the selector whose images will be show. </ p >
105
+ < pre class ="prettyprint lang-js ">
106
+ $(document).ready(function(){
107
+
108
+ $(".img-container").popupLightbox();
109
+
110
+ });
111
+ </ pre >
112
+ < p > 4. Now you have done! no need to build HTML or any extra tag. It will be automatically done by popup lightbox plugin. </ p >
113
+ < p >
114
+ < b > Note:</ b > You can also call the plugin with body selector to show all body images. Similarly, you can use it to show article images. < br >
115
+ If you have any question, suggestion or help, you can contact me via Facebook. < br />
116
+ < a href ="https://www.facebook.com/codehimOffcial "> Visit My Facebook. </ a >
117
+ </ p >
42
118
</ article >
43
119
</ main >
120
+
121
+
122
+
123
+
124
+
44
125
<!--Demo Only Files-->
45
126
< link href ="docs/demo.css " rel ="stylesheet " />
46
-
127
+ < script src =" https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js " > </ script >
47
128
< footer class ="credit ">
48
129
Coded with < span title ="Coffee "> </ span > by Asif Mughal © 2019 - < a href ="https://www.codehim.com " rel ="dofollow " title ="Awesome Web Projects and Tutorials " target ="_blank "> Codehim.com </ a >
49
130
</ footer >
0 commit comments