The code in your post looks OK, but I may be missing something. If the image train isn't wide enough to fill the 571 pixel width you have set for it, that could be a problem, but I don't think that's happening here. Also, javascript:void(0) is a bad idea, if you want no link, use only the image tag in the array, ex:
Code:
leftrightslide[0]='<img src="images/spring2007.jpg">'
Or, if you want a link that's truly inactive (javascript:void(0); will fire in some browsers causing a window.unload event that can curtail some of the functionality of your page), add an onclick event that returns false:
Code:
leftrightslide[0]='<a href="javascript:void(0);" onclick="return false;"><img src="images/spring2007.jpg"></a>'
But, again, this wouldn't cause the problem you mention, and is, though important, rather a fine point. It's probably due to other layout and/or style used on the page. To be more specific, I would need to see the live page:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks