
Originally Posted by
rooon
your solution isn´t working.
i think that it is what i need.
perhaps you know how to fix the error? ;)
Works here in IE 7, FF 2, Safari 3, and Opera 9. No errors.
Please Supply a link to your Problem Page.
To get it to show nothing onload, make the first image transparent and leave off your last image in the array:
Code:
var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own.
slides[0] = ["spacer.gif", "John, Mary and Jesus"]; //this will be replaced by the last image
slides[1] = ["photo1.jpg", "Kissing Fools", "http://www.dynamicdrive.com"];
slides[2] = ["photo2.jpg", "Seated Woman"];
slides[3] = ["photo3.jpg", "The Dog Lovers"];
slides[4] = ["photo4.jpg", "Standing Woman"];
//last image missing
Then in the body call:
Code:
<script type="text/javascript">
//Notes on Parameters: The only required parameter is the slides_array_name. If Width is used, so must Height.
//Interval is optional too. It is always last, either fourth after Width and Height or second after Slides_array_name.
//Usage: new inter_slide(Slides_array_name, Width, Height, Interval)
new inter_slide(slides, 140, 225)
function runit(){
iss[0].gostop();
setTimeout(function(){iss[0].imgs[0][0]="photo5.jpg";}, 3000)
}
setTimeout(function(){runit()}, 5000);
</script>
The red image is the real last image.
Added Later:
I'm curious what browser was giving you all these problems?
I was just looking over those 'errors' of yours, just to see if any of them made any sense. They do, but they are not errors. They are warnings. And, as I said, the script works with no errors or warnings in the browsers mentioned. You must be using a javascript debugger or something. Those are valid warnings. But since the 'hidden' argument is used by the variable that hides it, that's no problem. The undefined property is just that. Properties don't need to be defined in javascript unless a value or method is being used from them. That particular one gets defined in time for it to be of use when needed, just not in time for it not to be undefined as the script starts. It stores a reference to the fading process, once underway.
Bookmarks