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