Ah, this issue bit me in the ass, using jQuery 1.2.3... is this a
browser/css quirk or is there a planned fix?
- jake
On Jun 17, 2007 7:31 AM, Fil <[EMAIL PROTECTED]> wrote:
>
> > I'am not sure, but this one may be faster:
> >
> > // get the background color
> > var current_p = $(this);
> > var
I'am not sure, but this one may be faster:
// get the background color
var current_p = $(this);
var bg = "transparent";
while(bg == "transparent") {
bg = current_p.parent().css('background-color');
current_p = current_p.parent();
}
you have a parent() too many ;-)
anyway this
I'am not sure, but this one may be faster:
// get the background color
var current_p = $(this);
var bg = "transparent";
while(bg == "transparent") {
bg = current_p.parent().css('background-color');
current_p = current_p.parent();
}
On 16 jun, 23:10, Fil <[EMAIL PROTECTED]> wrote:
3 matches
Mail list logo