- The page has 2 body tags, only one allowed per page.
- The paths to the images use the wrong slash (\), it should be (/):
Code:
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="Images\double.jpg"
var image2=new Image()
image2.src="Images\family.jpg"
var image3=new Image()
image3.src="Images\room.jpg"
//-->
</script>
</head>
<body>
<center><img src="Images\double.jpg" name="slide" width="500" height="456" /></center>
should be:
Code:
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="Images/double.jpg"
var image2=new Image()
image2.src="Images/family.jpg"
var image3=new Image()
image3.src="Images/room.jpg"
//-->
</script>
</head>
<body>
<center><img src="Images/double.jpg" name="slide" width="500" height="456" /></center>
- There's nothing in there that would cause the images to fade in or out.
- The use of eval there isn't necessary and may even be causing an error, try:
Code:
document.images.slide.src = window['image' + step].src;
instead.
Number 2 is probably the most serious. There could be other issues like missing images or other things with the code that aren't immediately apparent from your post.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Also, for a slideshow that does fade in and out, see:
http://www.dynamicdrive.com/dynamici...nslideshow.htm
There are many others.
Bookmarks