无法让jQuery图像滑块工作

时间:2012-10-01 09:23:25

标签: jquery image slider gallery

我一直在努力解决这个问题 - 我前一段时间为我的网站购买了一个jQuery图像滑块插件,并且一直在尝试实现它,但由于我无法理解的原因,它只是拒绝工作。我已经向开发人员发送了一封电子邮件,他回复说我已经正确安装了所需的编码,并且我已经尝试多次重新安装插件,按照说明进行了密切关注,但我仍然无法获得我的插件工作。它只是显示为我本地站点的空白。我试过的一些免费的插件/图片滑块教程也产生了同样的问题,尽管正确输入了代码,我的图像显示在彼此的顶部,而不是一个漂亮,流畅的滑块。

我的代码有问题吗?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
    <title>LITESTAR</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link href="script/style.css" rel="stylesheet" type="text/css" />
    <!-- Google Webfonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300' rel='stylesheet' type='text/css' />
    <!-- LayerSlider styles -->
    <link rel="stylesheet" href="layerslider/css/layerslider.css" type="text/css" />

    <!-- jQuery with jQuery Easing JS -->
    <script src="layerslider/jQuery/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="layerslider/jQuery/jquery-easing-1.3.js" type="text/javascript"></script>

    <!-- LayerSlider from Kreatura Media -->
    <script src="layerslider/js/layerslider.kreaturamedia.jquery-min.js" type="text/javascript"></script>

    <script type="text/javascript">
                $(document).ready(function(){
                    $('#layerslider').layerSlider({
                        skin : 'lightskin',
                        skinsPath : '../layerslider/skins/'
                    });
                });     
            </script>
    </head>
    <body>
    <div id="container">
      <div id="header">
        <ul class="menu">
          <li><a href="#">Home</a></li>
          <li><a href="#">About Us</a>
            <ul>
              <li><a href="#">Corporate Overview</a></li>
              <li><a href="#">Our Capabilities</a></li>
              <li><a href="#">Our Team</a></li>
              <li><a href="#">Contact Us</a></li>
            </ul>
          </li>
           <li><a href="#">Solutions &amp; Services</a>
            <ul>
              <li><a href="#">Biometric &amp; RFID Access Control Systems</a></li>
              <li><a href="#">Video Surveillance Systems</a></li>
              <li><a href="#">Track &amp; Trace Systems</a></li>
              <li><a href="#">Logistic Management Systems</a></li>
              <li><a href="#">Professional IT &amp; Office Equipment</a></li>
              <li><a href="#">Document Management Systems</a></li>
              <li><a href="#">Infrastructure (Connectivity)</a></li>
              <li><a href="#">Systems Integration</a></li>
              <li><a href="#">Projects &amp; Solutions Deployment</a></li>
              <li><a href="#">Outsourced Professional Services</a></li>
            </ul>
          </li>
          <li><a href="#">Products</a>
            <ul>
              <li><a href="#">ACTAtek, Certis, Bioguard, ArtecID</a></li>
              <li><a href="#">HIKVISION, AXIS, microlight</a></li>
              <li><a href="#">Customised RFID Asset Tracking System</a></li>
              <li><a href="#">Cristal WMS, RFID Smart Tag</a></li>
              <li><a href="#">Microsoft, Supermicro, HP, IBM</a></li>
              <li><a href="#">CareInc eForm</a></li>
            </ul>
          </li>
          <li><a href="#">Support &amp; Download</a>
            <ul>
              <li><a href="#">Corporate Brochure</a></li>
              <li><a href="#">Product Brochure</a></li>
            </ul>
          </li>
          <li><a href="#">Latest News</a></li>
        </ul>
      </div>
      <!--End Header-->
      <div id="wrapper">
      <!--LayerSlider begin-->
       <div id="layerslider" style="display:block;">
      <!--LayerSlider layer-->
        <div class="ls-layer">

            <!--LayerSlider background-->
            <img class="ls-bg" src="images/banner1.png" alt="layer1-background" />
            </div>
            <!--LayerSlider layer-->
        <div class="ls-layer">

            <!--LayerSlider background-->
            <img class="ls-bg" src="images/banner2.png" alt="layer1-background" />
            </div>
         <!--LayerSlider layer-->
        <div class="ls-layer">

            <!--LayerSlider background-->
            <img class="ls-bg" src="images/banner3.png" alt="layer1-background" />
            </div>
         <!--LayerSlider layer-->
        <div class="ls-layer">

            <!--LayerSlider background-->
            <img class="ls-bg" src="images/banner4.png" alt="layer1-background" />
            </div>
      </div>
      </div>
      <!--End Wrapper-->
      <div id="footer"> </div>
      <!--End Footer--> 
    </div>
    <!--End Container-->
    </body>
    </html>

0 个答案:

没有答案