http://placebook.tv - hover the links in the instructions panel on the
left repeatedly.
cheers
Walter
> --
>
> You received this message because you are subscribed to the Google
> Groups "Prototype & script.aculo.us" group.
> To post to this group, send email to prototype-s...@googlegroups.com
> .
> To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en
> .
>
>
On Dec 23, 12:26 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
> I'd love to help, but your browser detection scheme mis-identified my
> Safari as Chrome, then redirected me to getfirefox.com. I already have
> Firefox, thanks.
>
> Walter
>
> On Dec 22, 2009, at 3:48 PM, evilC wrote:
>
> > I am using pulse effects in my app to highlight UI components on
> > mouseover of some help text. Sometimes, however, the animation gets
> > stuck or something and you are stuck with a greyed out DIV. Any ideas
> > on what I may be doing wrong or how I may work around it?
>
> >http://placebook.tv- hover the links in the instructions panel on the
Tthanks!
On Dec 23, 3:09 pm, evilC <ev...@evilc.com> wrote:
> Hmm.
> 'twas prototype that mis-identified, not me. It's a very simple
> Prototype.browser.x check.
> Whatever, I have changed it to a choice box now, so you dont have to
> redirect.
> Unfortunately, my site seems down at the moment, so I will have to
> upload the new version.
>
> On Dec 23, 12:26 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
>
> > I'd love to help, but your browser detection scheme mis-identified my
> > Safari as Chrome, then redirected me to getfirefox.com. I already have
> > Firefox, thanks.
>
> > Walter
>
> > On Dec 22, 2009, at 3:48 PM, evilC wrote:
>
> > > I am using pulse effects in my app to highlight UI components on
> > > mouseover of some help text. Sometimes, however, the animation gets
> > > stuck or something and you are stuck with a greyed out DIV. Any ideas
> > > on what I may be doing wrong or how I may work around it?
>
> > >http://placebook.tv-hover the links in the instructions panel on the
Walter
On Dec 22, 2009, at 3:48 PM, evilC wrote:
<a [...] onmouseover="attractAttention
('pb_user_mylocs_button');">link</a>
and the attractAttention function is a one-liner:
function attractAttention(obj){
new Effect.Pulsate(obj, { pulses: 3, duration: 1});
}
Apart from the "Click a Location Marker" link, which also moves the
map etc.
Basically, for a demo, rollover just the last link (My Locations)
repeatedly.
As I said, that effectively executes one line:
new Effect.Pulsate($('pb_user_mylocs_button'), { pulses: 3, duration:
1});
It's clearly not my code. If you go to http://wiki.github.com/madrobby/scriptaculous/effect-pulsate
and click the demo repeatedly, you get the same problem.
On Dec 23, 8:54 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
> Can you make a cut-down example that shows only the trigger element
> and the effect element? I tried looking at the source, and there's
> just so much else going on in there that I don't know where to start.
> Is that big lump of code in the middle (begins with unescape) what you
> are using to drive any of these effects?
>
> Walter
>
> On Dec 22, 2009, at 3:48 PM, evilC wrote:
>
> > I am using pulse effects in my app to highlight UI components on
> > mouseover of some help text. Sometimes, however, the animation gets
> > stuck or something and you are stuck with a greyed out DIV. Any ideas
> > on what I may be doing wrong or how I may work around it?
>
> >http://placebook.tv- hover the links in the instructions panel on the
I tried queueing effects, but had no luck.
document.observe('dom:loaded', function(){
Element.addMethods({
attractAttention: function(obj){
new Effect.Pulsate(obj, { pulses: 3, duration: 1, queue: this.id});
}
});
$('parentDiv').observe('mouseover',function(evt){
var elm = evt.element();
elm.identify(); //patch anything you didn't ID
switch(elm.id){
case 'foo':
$('foo_target').attractAttention();
break;
case 'bar':
$('bar_target').attractAttention();
break;
case 'baz':
$('baz_target').attractAttention();
break;
default:
break;
}
});
});
Hope this helps,
Walter
Queue works by allowing you to define as many different queues as you
like, and for each queue, stacking up the effects that are fired
within it so that they have to complete before another effect can
begin. By passing the ID of the element as the queue name, you give
each element its own stack of effects, keeping another effect from
messing with it and giving each effect time to complete fully.
Walter
Cheers anyway