这是我的幻灯片放映代码,我需要帮助添加图片到图片的过渡效果。
如果有人有任何伟大的东西!
<script type="text/javascript">
var image1 = new Image()
image1.src = "images/house 2.jpg"
var image2 = new Image()
image2.src = "images/desk.jpg"
var image3 = new Image ()
image3.src = "images/car.jpg"
var image4 = new Image ()
image4.src = "images/life.jpg"
</script>
<p><img src="images/house.jpg" width="1100px" height="300" name="slide" style="margin-left: 75px; margin-top: 10px;" /></p>
<script type="text/javascript">
var step=1;
function slideit()
{
document.images.slide.src = eval("image"+step+".src");
if(step<4)
step++;
else
step=1;
setTimeout("slideit()",2500);
}
slideit();
</script>