/examples-no-jquery/slider-with-bullet-navigator.source.html
https://github.com/DIGININJADEV/jquery-slider · HTML · 99 lines · 81 code · 6 blank · 12 comment · 0 complexity · 8b4e2d9429eef9d24a815bdb2165cb14 MD5 · raw file
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>Bullet Navigator Example - Jssor Slider, Slideshow</title>
- </head>
- <body style="font-family:Arial, Verdana;background-color:#fff;">
- <!-- use jssor.slider.min.js instead for release -->
- <!-- jssor.slider.min.js = (jssor.core.js + jssor.utils.js + jssor.slider.js) -->
- <script type="text/javascript" src="../js/jssor.core.js"></script>
- <script type="text/javascript" src="../js/jssor.utils.js"></script>
- <script type="text/javascript" src="../js/jssor.slider.js"></script>
- <script>
- jssor_slider1_starter = function (containerId) {
- var options = {
- $DragOrientation: 3, //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
- $BulletNavigatorOptions: { //[Optional] Options to specify and enable navigator or not
- $Class: $JssorBulletNavigator$, //[Required] Class to create navigator instance
- $ChanceToShow: 2, //[Required] 0 Never, 1 Mouse Over, 2 Always
- $ActionMode: 1, //[Optional] 0 None, 1 act by click, 2 act by mouse hover, 3 both, default value is 1
- $AutoCenter: 0, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
- $Steps: 1, //[Optional] Steps to go for each navigation request, default value is 1
- $Lanes: 1, //[Optional] Specify lanes to arrange items, default value is 1
- $SpacingX: 0, //[Optional] Horizontal space between each item in pixel, default value is 0
- $SpacingY: 0, //[Optional] Vertical space between each item in pixel, default value is 0
- $Orientation: 1 //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1
- }
- };
- var jssor_slider1 = new $JssorSlider$(containerId, options);
- };
- </script>
- <!-- Jssor Slider Begin -->
- <!-- You can move inline styles to css file or css block. -->
- <div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 600px;
- height: 300px;">
- <!-- Loading Screen -->
- <div u="loading" style="position: absolute; top: 0px; left: 0px;">
- <div style="filter: alpha(opacity=70); opacity:0.7; position: absolute; display: block;
- background-color: #000000; top: 0px; left: 0px;width: 100%;height:100%;">
- </div>
- <div style="position: absolute; display: block; background: url(../img/loading.gif) no-repeat center center;
- top: 0px; left: 0px;width: 100%;height:100%;">
- </div>
- </div>
- <!-- Slides Container -->
- <div u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px; width: 600px; height: 300px;
- overflow: hidden;">
- <div><img u="image" src="../img/landscape/01.jpg" /></div>
- <div><img u="image" src="../img/landscape/02.jpg" /></div>
- <div><img u="image" src="../img/landscape/03.jpg" /></div>
- <div><img u="image" src="../img/landscape/04.jpg" /></div>
- <div><img u="image" src="../img/landscape/05.jpg" /></div>
- <div><img u="image" src="../img/landscape/06.jpg" /></div>
- <div><img u="image" src="../img/landscape/07.jpg" /></div>
- <div><img u="image" src="../img/landscape/08.jpg" /></div>
- </div>
- <!-- Bullet Navigator Skin Begin -->
- <style>
- /* jssor slider bullet navigator skin 03 css */
- /*
- .jssorb03 div (normal)
- .jssorb03 div:hover (normal mouseover)
- .jssorb03 .av (active)
- .jssorb03 .av:hover (active mouseover)
- .jssorb03 .dn (mousedown)
- */
- .jssorb03 div, .jssorb03 div:hover, .jssorb03 .av
- {
- background: url(../img/b03.png) no-repeat;
- overflow:hidden;
- cursor: pointer;
- }
- .jssorb03 div { background-position: -5px -5px; }
- .jssorb03 div:hover, .jssorb03 .av:hover { background-position: -35px -5px; }
- .jssorb03 .av { background-position: -65px -5px; }
- .jssorb03 .dn, .jssorb03 .dn:hover { background-position: -95px -5px; }
- </style>
- <!-- bullet navigator container -->
- <div u="navigator" class="jssorb03" style="position: absolute; bottom: 4px; left: 6px;">
- <!-- bullet navigator item prototype -->
- <div u="prototype" style="position: absolute; width: 21px; height: 21px; text-align:center; line-height:21px; color:white; font-size:12px;"><NumberTemplate></NumberTemplate></div>
- </div>
- <!-- Bullet Navigator Skin End -->
- <a style="display: none" href="http://www.jssor.com">javascript</a>
- <!-- Trigger -->
- <script>
- jssor_slider1_starter('slider1_container');
- </script>
- </div>
- <!-- Jssor Slider End -->
- </body>
- </html>