0
我正在尋找一個非常簡單和直接的圖像幻燈片。沒有額外的功能只是選擇圖像淡入淡出。 Potrait和Landscapes需要以全尺寸顯示,而不啓用任何滾動條。我設法找到這一個:簡單的HTML圖像幻燈片
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="fadeSlideShow.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
\t jQuery('#slideshow').fadeSlideShow();
});
</script>
</head>
<body>
<div id="slideshow">
<img src="../images/large/nature/BokehPlant1.jpg" width="640" height="480" border="0" alt="" /> <!-- This is the last image in the slideshow -->
<img src="../images/large/nature/BokehPlant2.jpg" width="640" height="480" border="0" alt="" />
<img src="../images/large/nature/BokehPlant3.jpg" width="640" height="480" border="0" alt="" />
<img src="../images/large/nature/RusticLeaf1.jpg" width="640" height="480" border="0" alt="" /> <!-- This is the first image in the slideshow -->
</div>
</body>
但是它似乎並不希望雖然工作。它所做的只是渲染圖像。
事先道歉我還沒有在一段時間內使用過HTML,而且我沒有太多有關JavaScript的經驗。
非常感謝提前! 哈利
你的代碼片段,無需我方沒用能夠看到'fadeSlideshow.js'。 – Hydrothermal 2015-02-11 00:41:00
fadeSlideshow.js沒有文檔? – 2015-02-11 01:05:36
嗨,我想你正在嘗試使用這個http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm,請按照文檔fadeslideshow.js – PRAH 2015-02-11 01:09:51