[Proto-Scripty] Toggle opacity

2013-01-23 Thread Köd
Hi guys * To get a full view of my problem, please read: http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs *_ *I have a simple question to ask you:* Is it possible to use effect.opacity as a toggle effect? The

[Proto-Scripty] Toggle Opacity

2013-01-23 Thread René Fogtmann
Hi guys I was wondering if it was possible to *toggle opacity* so that it stops when it's either 0 or 1. * - Right now it is possible to spam opacity, hence making the dedicated element flashing each time you click.* The reason why, is because: when I'm using the *appear toggle*, it is

Re: [Proto-Scripty] Toggle opacity

2013-01-23 Thread Walter Lee Davis
On Jan 23, 2013, at 7:48 AM, Köd wrote: Hi guys To get a full view of my problem, please read: http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs _ I have a simple question to ask you: Is it possible

Re: [Proto-Scripty] Toggle opacity

2013-01-23 Thread Jason Westbrook
Instead of running each() on each element to run the Effect take a look a Effect.multiple() http://madrobby.github.com/scriptaculous/effect-multiple/ it will do the heavy lifting for you and makes the code more readable Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Wed, Jan 23,

Re: [Proto-Scripty] Toggle opacity

2013-01-23 Thread Walter Lee Davis
Could you please post your solution? I thought Effect.multiple was for applying different functions to the same element, not the other way round... Walter On Jan 23, 2013, at 11:28 AM, Köd wrote: Guys! It works! I don't know what was wrong with my code before - but I made the