Thanks, Tom, for directing me to queues...
Doesn't 'toggle' use queues anyway ? I thought, that I've seen
something like that in the code.

I've now build a similar scenery with slightly different behaviour:
the grey image (top-most one) is hidden without any effect, thats all.
I've tried to encapsulated that images with an extra 'div' as well as
different queue positions and limits, w/o any difference.

I think, that there possibly something little wrong with my code, but
I can't see it...

<div id="mfBannerDiv">
    <div id="mfBannerColr"><div><img src="color.jpg"></div></div>
    <div id="mfBannerGrey"><div><img src="grey.jpg"></div></div>
</div>

Event.observe(window, 'load', function() {
    Event.observe('mfBannerDiv', 'mouseover', function() {
        new Effect.Fade('mfBannerGrey', {queue: {position:'front',
limit:2, scope:'banner'}}); });
    Event.observe('mfBannerDiv', 'mouseout',  function() {
        new Effect.Appear('mfBannerGrey', {queue: {position:'end',
limit:2, scope:'banner'}}); });
});

-------------------
detlevv


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to