1

这几天我一直在为此苦苦挣扎——不久前我为我的网站购买了一个 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>
4

0 回答 0