Team:UCLA/anuved verma ucla2014 workspace/home
From 2014.igem.org
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 1: | Line 1: | ||
- | {{:Team:UCLA/anuved_verma_ucla2014_workspace}} | + | {{:Team:UCLA/anuved_verma_ucla2014_workspace/jscore}} |
- | + | {{:Team:UCLA/anuved_verma_ucla2014_workspace/jsutils}} | |
- | + | {{:Team:UCLA/anuved_verma_ucla2014_workspace/jsslider}} | |
- | + | <html> | |
- | + | <head> | |
- | + | <meta charset="utf-8"> | |
- | < | + | <meta name="viewport" content="width=device-width"> |
- | < | + | <title>Arrow Navigator Example - Jssor Slider, Slideshow</title> |
- | + | </head> | |
- | + | <body style="font-family:Arial, Verdana;background-color:#fff;"> | |
- | + | <!-- it works the same with all jquery version from 1.x to 2.x --> | |
- | + | <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
- | + | <!-- use jssor.slider.mini.js (40KB) or jssor.sliderc.mini.js (32KB, with caption, no slideshow) or jssor.sliders.mini.js (28KB, no caption, no slideshow) instead for release --> | |
- | + | <!-- jssor.slider.mini.js = jssor.sliderc.mini.js = jssor.sliders.mini.js = (jssor.core.js + jssor.utils.js + jssor.slider.js) --> | |
- | + | <script> | |
- | + | jQuery(document).ready(function ($) { | |
- | + | 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) | |
- | + | $ArrowNavigatorOptions: { //[Optional] Options to specify and enable arrow navigator or not | |
- | + | $Class: $JssorArrowNavigator$, //[Requried] Class to create arrow navigator instance | |
- | <!-- | + | $ChanceToShow: 2, //[Required] 0 Never, 1 Mouse Over, 2 Always |
- | + | $AutoCenter: 0, //[Optional] Auto center arrows in parent container, 0 No, 1 Horizontal, 2 Vertical, 3 Both, default value is 0 | |
- | + | $Steps: 1 //[Optional] Steps to go for each navigation request, default value is 1 | |
- | < | + | } |
- | + | }; | |
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | var jssor_slider1 = new $JssorSlider$("slider1_container", 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; "> | ||
+ | <!-- 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="https://static.igem.org/mediawiki/2014/1/11/002.jpg" /></div> | ||
+ | <div><img u="image" src="https://static.igem.org/mediawiki/2014/9/9c/003.jpg" /></div> | ||
+ | <div><img u="image" src="https://static.igem.org/mediawiki/2014/c/c0/004.jpg" /></div> | ||
+ | <div><img u="image" src="../img/photography/005.jpg" /></div> | ||
+ | <div><img u="image" src="../img/photography/006.jpg" /></div> | ||
+ | <div><img u="image" src="../img/photography/007.jpg" /></div> | ||
+ | <div><img u="image" src="../img/photography/008.jpg" /></div> | ||
+ | </div> | ||
+ | |||
+ | <!-- Arrow Navigator Skin Begin --> | ||
+ | <style> | ||
+ | /* jssor slider arrow navigator skin 03 css */ | ||
+ | /* | ||
+ | .jssora03l (normal) | ||
+ | .jssora03r (normal) | ||
+ | .jssora03l:hover (normal mouseover) | ||
+ | .jssora03r:hover (normal mouseover) | ||
+ | .jssora03ldn (mousedown) | ||
+ | .jssora03rdn (mousedown) | ||
+ | */ | ||
+ | .jssora03l, .jssora03r, .jssora03ldn, .jssora03rdn | ||
+ | { | ||
+ | position: absolute; | ||
+ | cursor: pointer; | ||
+ | display: block; | ||
+ | background: url(../img/a03.png) no-repeat; | ||
+ | overflow:hidden; | ||
+ | } | ||
+ | .jssora03l { background-position: -3px -33px; } | ||
+ | .jssora03r { background-position: -63px -33px; } | ||
+ | .jssora03l:hover { background-position: -123px -33px; } | ||
+ | .jssora03r:hover { background-position: -183px -33px; } | ||
+ | .jssora03ldn { background-position: -243px -33px; } | ||
+ | .jssora03rdn { background-position: -303px -33px; } | ||
+ | </style> | ||
+ | <!-- Arrow Left --> | ||
+ | <span u="arrowleft" class="jssora03l" style="width: 55px; height: 55px; top: 123px; left: 8px;"> | ||
+ | </span> | ||
+ | <!-- Arrow Right --> | ||
+ | <span u="arrowright" class="jssora03r" style="width: 55px; height: 55px; top: 123px; right: 8px"> | ||
+ | </span> | ||
+ | <!-- Arrow Navigator Skin End --> | ||
+ | <a style="display: none" href="http://www.jssor.com">responsive carousel</a> | ||
+ | </div> | ||
+ | <!-- Jssor Slider End --> | ||
+ | </body> | ||
</html> | </html> |
Revision as of 06:12, 20 September 2014
/* Slider Styles */
- Slider {
position: relative; width: 100%; display: none; }
- Slider .Slides {
width: 100%; height: 100%; background-size: 100%, auto; }
- Slider #Slide0 {
background-image: url(); }
- Slider #Slide1 {
background-image: url(); display: none; }
- Slider #Slide2 {
background-image: url(); display: none; }
- Slider #Slide3 {
background-image: url(); display: none; }
- Slider #Slide4 {
background-image: url(); display: none; }
- Slider #Slide5 {
background-image: url(); display: none; }
- Slider #BottomLinks {
position: absolute; width: 100%; padding: 0; bottom: 0; background: #353132; text-align: center; opacity: 0.61; filter: alpha(opacity=61); }
- Slider #BottomLinks li {
display: inline-table; list-style: none; height: 100%; color: #FFFFFF; font: 24px Raleway, Arial, san-serif; text-align: center; padding: 15px 20px; }
- Slider #BottomLinks li:hover {
cursor: pointer; text-decoration: underline; }
- Slider .SideBar {
position: absolute; top: 0; width: 90px; z-index: 1; }
- Slider #LeftBar {
left: 0; }
- Slider #RightBar {
right: 0; }
- Slider #LeftArrow {
position: absolute; width: 60px; height: 60px; margin-left: 30px; background: url() top no-repeat; }
- Slider #RightArrow {
position: absolute; width: 60px; height: 60px; margin-right: 30px; background: url() top no-repeat; }
- Slider #LeftArrow:hover, #Slider #RightArrow:hover {
background-position: bottom; cursor: pointer; }