1
+ <p align =' right ' >
2
+ <small >Sunil Samuel<br >
3
+ web_github@sunilsamuel.com <br >
4
+ http://www.sunilsamuel.com <br >
5
+ https://sunil-samuel.github.io/#jquery-rbs
6
+ </small >
7
+ </p >
8
+
9
+
1
10
# jquery-responsive-background-slideshow
2
11
3
12
** JQuery Responsive Background Slideshow** :: Slideshow for the background using JQuery animation
@@ -8,16 +17,40 @@ JQuery plugin that can create a background slideshow. This plugin works differe
8
17
9
18
``` javascript
10
19
< script type= " text/javascript" >
11
- $ (function () {
12
- $ (" .bg" ).bgSlideShow ();
13
- });
20
+ $ (function () {
21
+ $ (" .bg" ).bgSlideShow ();
22
+ });
14
23
< / script>
15
24
16
25
< body>
17
- < div class = " .bg" > Hello< / div>
26
+ < div class = " .bg" > Hello< / div>
18
27
< / body>
19
28
```
20
29
30
+ Complete option usage:
31
+
32
+ ``` javascript
33
+ < script type= " text/javascript" >
34
+ $ (function () {
35
+ $ (" .bg" ).bgSlideShow ({
36
+ current : 0 ,
37
+ images : [" ../gfx/first.png" , " ../gfx/second.png" ],
38
+ transitionDelay : 5000 , // 5 seconds
39
+ transitionSpeed : 3000 , // 3 seconds
40
+ transitionEffect : ' fade-in' ,
41
+ randomize : false ,
42
+ initialBackground : ' random' ,
43
+ debug : true ,
44
+ eventHandlers : {
45
+ beforeInit: myBeforeInitFunc,
46
+ afterInit: myAfterInitFunc,
47
+ beforeChange : myBeforeChangeFunc,
48
+ afterChange : myAfterChangeFunc
49
+ }
50
+ });
51
+ });
52
+ < / script>
53
+ ```
21
54
22
55
## Examples
23
56
@@ -46,8 +79,9 @@ $(function () {
46
79
< div class = ' bg' data- transitionSpeed= 5000 > content< div>
47
80
```
48
81
49
- > ** current ** or ** data-current** (default: 0)
82
+ > ** current ** or ** data-current** (default: 0)
50
83
>> Given the list of images, current defines which image to use first. If ` randomize ` is set to ` true ` , then current is not used.
51
- >>> <div data-current =0 >content</div >
84
+ >> <div data-current =0 >content</div >
52
85
53
- > ** image**
86
+ > ** images** or ** data-images** (default: [ ] )
87
+ >> List of images to use to create the background slideshow.
0 commit comments