[jQuery] Re: Event handling/propagation question

2009-02-20 Thread spaceage
> $('#mydiv').css('cursor','pointer').click(function(){ > $(this).addClass('selected'); > > }); > > No need to select all the contents "manually". > > On Feb 20, 5:16 pm, spaceage wrote: > > > OK, so you have to inde

[jQuery] Re: Event handling/propagation question

2009-02-20 Thread spaceage
   $(this).parents("div.clickable_element").toggleClass("selected"); >     }); > > }); > spaceage wrote: > > A question re: event handling/propagation:  I have a surrounding > > and I want any click within the (including a click on any > > element within the

[jQuery] Event handling/propagation question

2009-02-20 Thread spaceage
A question re: event handling/propagation: I have a surrounding and I want any click within the (including a click on any element within the div) to toggle the addition/removal of a class on the . In this example, if the user clicks on one of the elements within the , my toggle doesn't work--

[jQuery] Strange .attr('src') behavior in IE

2009-01-29 Thread spaceage
I have a hover script that implements image rollovers that goes like this: $(document).ready(function() { $("img.rollover").hover(function() { $(this).attr("src", $(this).attr("src").split(".").join("- hover.")); }, function() { $(this).attr("src", $(this).attr("src").split("-hover.")

[jQuery] Determining visible elements in an overflowed div

2008-09-10 Thread spaceage
Is there any way to use jQuery to determine which elements/items are visible within a div that is overflowing? ie. let's say I have a bunch of elements contained within a , where the elements are overflowing the .  I want to use localScroll to scroll vertically to a given element, but I'd li

[jQuery] Re: animation question

2008-02-15 Thread spaceage
One more thing on this--I was thinking about how to make this code less "brittle" as far as the handling of the spacing. Since the s in my list contain browser text, the height/spacing of the can vary depending on a bunch of factors (ie. font size, line-height, etc). Is there a way to have each

[jQuery] Re: animation question

2008-02-14 Thread spaceage
rnier <[EMAIL PROTECTED]> wrote: > On 13 Feb, 06:41,spaceage<[EMAIL PROTECTED]> wrote: > > > Is this a reasonable undertaking using jQuery, or is there another > > better way (or plug in) to do this? > > jQuery is perfect for this kind of things :) > just give

[jQuery] animation question

2008-02-13 Thread spaceage
I'm trying to create an effect using a within a . I want to have each slide up individually from (outside) the bottom of the to the highest available position in the without overlapping other elements. Its kind of a "scroll/accordian" effect. At the conclusion of the animation, the would