- Create Account

starting point and multislideshows

Forums > PhotoMorpher > starting point and multislideshows
Author
Message

1) warteschlange Group: Members
Posts: 3 Joined: 3 Nov 2006 Location: switzerland IP: 84.72.--.--
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) warteschlange Group: Members
Posts: 3 Joined: 3 Nov 2006 Location: switzerland IP: 84.72.--.--
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 Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
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) warteschlange Group: Members
Posts: 3 Joined: 3 Nov 2006 Location: switzerland IP: 84.72.--.--
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
 {
 
newI.style.opacity = newI.style.MozOpacity = fadeVal/100.1;
  /**** modified  start */
  //if(this.enableFadeout)
  oldI.style.opacity = oldI.style.MozOpacity  = 1-(fadeVal/100.1);
  /**** modified end*/
 }
Helping the world

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.