2013-03-15 92 views
0

我試圖讓jquery backstretch去幻燈片放映。我爲目前爲止在網頁中直接從直道演示頁複製該代碼:http://srobbin.com/demos/jquery-backstretch/examples/slideshow.htmljQuery backstretch幻燈片不工作

的職責是爲頁面非常簡單,到目前爲止我的代碼看起來是這樣的:

<head> 
<title>Coconut Hotel Ecuador</title> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/> 

     <script src="plugins/srobbin-jquery-backstretch-14ce02f/lib/jquery.min.js"></script> 
     <script src="plugins/srobbin-jquery-backstretch-14ce02f/jquery.backstretch.min.js"></script> 
      <script> 
        $.backstretch(["beach.jpg", 
        "swing.jpg"]); 
       </script> 

我已經嘗試過,沒有持續時間和淡入淡出但沒有喜悅。另外,只使用一個圖像,它可以正常工作。不止一個,它只是一個白色的背景。看着螢火我得到這個錯誤:

<img style="position: absolute; display: none; margin: 0px; padding: 0px; border: medium none; z-index: -999999;" src="beach.jpg,swing.jpg">

與明顯不被人發現的圖像源。

任何幫助表示讚賞。

+0

我能想到的唯一原因(如果它不是bug)是你的路徑(對插件或圖像)是錯誤的。 – 2014-11-20 21:26:02

回答