1

我正在使用 novus wordpress 主题。我无法将幻灯片放映添加到我的网站。它有两个滑块。它们是相机滑块和 onebyone 滑块。我使用主题选项上传了图像,但它们没有显示在我的主页中。onebyone 滑块的图像正在显示但没有动画。相机滑块完全不起作用。请帮我。这是我的主页滑块代码,

 <?php
global $slider_type, $ns_options_frnt;?>
        <?php if (sizeof($ns_options_frnt['css_addSlide_field'])>0){?>
        <?php

            //nivo, jfancytile, c1, c3, no_slider
            if(true)
            {
        ?>

        <script type="text/javascript">
        <?php if($ns_options_frnt['ns_select_slider'] == 'default'){ ?>
            jQuery(function(jQuery){
                if (jQuery('div').is('#header-slider')){
                    jQuery('#header-slider').camera({
                        height: 'auto',
                        navigation: false,
                        navigationHover: false,
                    loader: 'none',
                    pagination: false,
                    thumbnails: true,
                    mobileAutoAdvance: true,
                    autoAdvance: <?php echo $ns_options_frnt['front_Auto'] == 'enable' ? 'true' :'false'?>,
                    time: <?php echo ($ns_options_frnt['front_AutoSpeed'] ? $ns_options_frnt['front_AutoSpeed'] :7000)?>,
                    fx: "<?php echo $ns_options_frnt['front_fx'] ? $ns_options_frnt['front_fx'] :'simpleFade, curtainSliceLeft, curtainSliceRight, scrollBottom, scrollTop'?>",
                        Cols:  "<?php echo $ns_options_frnt['front_Cols'] ? $ns_options_frnt['front_Cols'] :4?>",
                        Rows:  "<?php echo $ns_options_frnt['front_Rows'] ? $ns_options_frnt['front_Rows'] :1?>",
                        slicedCols:  "<?php echo $ns_options_frnt['front_slicedCols'] ? $ns_options_frnt['front_slicedCols'] :4?>",
                        slicedRows: "<?php echo $ns_options_frnt['front_slicedRows'] ? $ns_options_frnt['front_slicedRows'] :1?>",
                        transPeriod: <?php echo $ns_options_frnt['front_box_speed'] ? $ns_options_frnt['front_box_speed'] :2500?>                       




/*




                        */
                    });
                }
            });
        <?php }elseif($ns_options_frnt['ns_select_slider'] == 'onebyone'){ ?>
            jQuery(document).ready(function() { 

   jQuery('#banner').oneByOne({
        className: 'oneByOne1',              
        /* Please provide the width and height in the responsive 
        version, for the slider will keep the ratio when resize 
        depends on these size. */
        width: 1000,
        height: 420,
        easeType: 'random',
        slideShow: true,
        responsive: true,
        minWidth: 480,
                    delay: <?php echo $ns_options_frnt['frontOneByOne_AutoSpeed'] ? $ns_options_frnt['frontOneByOne_AutoSpeed'] :'300'?>,
        tolerance: <?php echo $ns_options_frnt['frontOneByOne_Tolerance'] ? $ns_options_frnt['frontOneByOne_Tolerance'] :'0.25'?>,                          
        slideShowDelay: <?php echo $ns_options_frnt['frontOneByOne_box_speed'] ? $ns_options_frnt['frontOneByOne_box_speed'] :'2000'?>
    });  

/*

4

0 回答 0