mercredi 26 octobre 2016

using jssor slider need to vertical-align the thumbnail text

I am trying to use jssor to setup a slide show. I cannot seem to fix the layout and it looks like this:

enter image description here

Code:

  var options9 = {
                    $AutoPlay: true,                                    //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
                    $AutoPlaySteps: 1,                                  //[Optional] Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1
                    $AutoPlayInterval: 4000,                            //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
                    $PauseOnHover: 1,                               //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
                    $ArrowKeyNavigation: true,                          //[Optional] Allows keyboard (arrow key) navigation or not, default value is false
                    $SlideDuration: 1000,                                //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
                    $MinDragOffsetToSlide: 20,                          //[Optional] Minimum drag offset to trigger slide , default value is 20
                    $SlideSpacing: 5,                                   //[Optional] Space between each slide in pixels, default value is 0
                    $DisplayPieces: 1,                                  //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1
                    $ParkingPosition: 0,                                //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0.
                    $UISearchMode: 1,                                   //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc).
                    $PlayOrientation: 1,                                //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1
                    $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)

                    $ThumbnailNavigatorOptions: {
                        $Class: $JssorThumbnailNavigator$,              //[Required] Class to create thumbnail navigator instance
                        $ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
                        $ActionMode: 2,                                 //[Optional] 0 None, 1 act by click, 2 act by mouse hover, 3 both, default value is 1
                        $Loop: 1,                                       //[Optional] Enable loop(circular) of carousel or not, 0: stop, 1: loop, 2 rewind, default value is 1
                        $AutoCenter: 3,                                 //[Optional] Auto center thumbnail items in the thumbnail navigator container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 3
                        $Lanes: 1,                                      //[Optional] Specify lanes to arrange thumbnails, default value is 1
                        $SpacingX: 0,                                   //[Optional] Horizontal space between each thumbnail in pixel, default value is 0
                        $SpacingY: 1,                                   //[Optional] Vertical space between each thumbnail in pixel, default value is 0
                        $DisplayPieces: 8,                              //[Optional] Number of pieces to display, default value is 1
                        $ParkingPosition: 0,                            //[Optional] The offset position to park thumbnail
                        $Orientation: 2,                                //[Optional] Orientation to arrange thumbnails, 1 horizental, 2 vertical, default value is 1
                        $DisableDrag: true                            //[Optional] Disable drag or not, default value is false

                    },
                    $ArrowNavigatorOptions: {
                        $Class: $JssorArrowNavigator$,              //[Requried] Class to create arrow navigator instance
                        $ChanceToShow: 1,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
                        $AutoCenter: 1,
                        $Steps: 1                                       //[Optional] Steps to go for each navigation request, default value is 1

                    },
                     $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
                    $AutoCenter: 1,                                 //[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: 10,                                  //[Optional] Horizontal space between each item in pixel, default value is 0
                    $SpacingY: 10,                                  //[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
                }
                };



   <!-- ThumbnailNavigator Skin Begin -->
    <div u="thumbnavigator" class="jssort11" style="position: absolute; width: 389px; height: 278px; left:1px; top:0px!important;">
        <!-- Thumbnail Item Skin Begin -->
        <style>
            .jssort11
            {
                font-family: Arial, Helvetica, sans-serif;
            }
            .jssort11 .i, .jssort11 .pav:hover .i
            {
                position: absolute;
                top:2px;
                left:2px;
                WIDTH: 60px;
                HEIGHT: 32px;
                display:none;
                border: white 1px dashed;
            }
            * html .jssort11 .i
            {
                WIDTH /**/: 62px;
                HEIGHT /**/: 32px;
            }
            .jssort11 .pav .i
            {
                border: white 1px solid;
            }
            .jssort11 .t, .jssort11 .pav:hover .t 
            {
                left:10px;
                top: -5px;
                position: absolute;
                width: 380px;
                text-align: left;
                color: #666!important;
                font-size: 20px;

            }
                .jssort11 .pav .t, .jssort11 .phv .t, .jssort11 .p:hover .t {


                }
                .jssort11 .c, .jssort11 .pav:hover .c {
                    position: absolute;
                    top: 30px;
                    left: 2px;
                    width: 377px;
                    height: 27px;
                    line-height: 27px;

                    font-size: 11px;
                    font-weight: 400;
                    overflow: hidden;
                }

            .jssort11 .t, .jssort11 .c
            {
                transition: color 2s;
                -moz-transition: color 2s;
                -webkit-transition: color 2s;
                -o-transition: color 2s;
            }
            .jssort11 .p:hover .t, .jssort11 .phv .t, .jssort11 .pav:hover .t, .jssort11 .p:hover .c, .jssort11 .phv .c, .jssort11 .pav:hover .c
            {
                transition: none;
                -moz-transition: none;
                -webkit-transition: none;
                -o-transition: none;
            }
            .jssort11 .p
            {
                background:white;
            }
                .jssort11 .pav, .jssort11 .pdn {
                    background: #e6f2fa;

                }
            .jssort11 .p:hover, .jssort11 .phv, .jssort11 .pav:hover
            {
                 background-color: #e6f2fa;
                 outline: none;

            }


        </style>
        <div u="slides" style="top:0px!important;height:291px!important;">
        <div u="prototype" class="p" style="border: 2px solid; position: absolute; width: 389px; height: 34px; top: 0; left: 0;">
        <thumbnailtemplate style="top: 0; left: 0;"></thumbnailtemplate>
        </div> </div>

        <div u="slides" style="top:0px!important;height:296px!important;">
         <div u="navigator" class="jssorb11" style="position: absolute; top: 267px; left: 160.5px;">
         <div u="prototype" style="POSITION: absolute; WIDTH: 11px; HEIGHT: 11px;"></div>
         </div>

        <!-- Thumbnail Item Skin End -->
    </div>
    <!-- ThumbnailNavigator Skin End -->

I am not sure what actually manipulates the position of the thumbnails text within the rendered div. I have tried everything and nothing seems to work.




Aucun commentaire:

Enregistrer un commentaire