1) warteschlangeGroup: Members Posts: 3Joined: 3 Nov 2006Location: switzerlandIP: 84.72.--.--
Posted:
is there a way to start from image number x instead from the beginning? I tried to make a slideshow with more than one (4 images) at the same time but with different delays. Is the code capable of handle more than one slide show at once? really great code! I hope i can implement it at http://www.kinderdorf.ch/album/worldart06 thanks
Helping the world
2) warteschlangeGroup: Members Posts: 3Joined: 3 Nov 2006Location: switzerlandIP: 84.72.--.--
Posted:
ok, i have answers by myself :) a) photo.display( photoList.getElementsByTagName("li").item(x) ); does it. b) it works great!
but now i ran into another problem: by positioning each image on another place the fading-in does its job. But there is no fading out. Normally there is no need to waste fade out time, as it is not seen anyway, but with different positions. A fade out would also be helpful at the end, instead of rotating. Again, very clean code. I was able to simply attach a loadComment function!
Thanks Andres - Switzerland
Helping the world
3) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
I'm glad you like the script!
Yes, you can have an unlimited number of independent photo morphers on page, just make sure that you have a "new PhotoMorpher()" for each of them, with the corresponding activation script and UL/LI/IMG/etc elements in the document :).
As for fading out -- well, the script is currently pretty hardcoded to fade "between" images rather than fade out. Perhaps make the last image in your slideshow a "show complete" image, and put a little extra code in the script to stop when it reaches the end?
Good luck - Angus.
4) warteschlangeGroup: Members Posts: 3Joined: 3 Nov 2006Location: switzerlandIP: 84.72.--.--
Posted:
i modified the code a bit, so the old images will be faded out - if flag is set. so you can position the images at differenet places and it still loks nice.
// Opacity seetings, first MSIE... if (newI.filters && newI.filters.length && newI.filters.alpha) { if (!newI.filters.alpha.enabled) newI.filters.alpha.enabled = true; newI.filters.alpha.opacity = parseInt(fadeVal); /****modified start */ //if(this.enableFadeout) oldI.filters.alpha.opacity = 100-parseInt(fadeVal); /**** modified end*/ } // ... then standard. I'm dividing by >100 as setting opacity=1 in Mozilla flickers. else {