[jQuery] Re: what is the correct way to test 'display' value in jQuery?

2009-06-17 Thread Jake Barnes
On Jun 17, 10:55 pm, Ricardo wrote: > $('#subnav-1').toggle(); > > http://docs.jquery.com/Effects/toggle > > You can also access the display property with $('#subnav-1').css > ('display'); > > On Jun 17, 10:02 pm, Jake Barnes wrote: > > &g

[jQuery] what is the correct way to test 'display' value in jQuery?

2009-06-17 Thread Jake Barnes
This code works, but it seems inelegant: if ($("#subnav-1")[0].style.display == "block") $("#subnav-1") [0].style.display = "none"; This seems to violate The One True jQuery Way: [0] I assume I'm not suppose to do that. The each() method is more elegant, but it is more verbose: $("#subnav-1

[jQuery] jquery cycle plugin conflicts with the fix we use for PNG's in IE6

2009-04-29 Thread Jake Barnes
This is a tough one. Any help, much appreciated. I've been experimenting all day with different ideas toward fixing this, but so far nothing has worked. Please look at this page in IE6: http://www.teamlalala.com/lark/Simplicity%20ie.htm In IE6, you can see a huge gap at the bottom of the page,

[jQuery] Re: why can't I get a background image to remain on div during mouseout?

2009-04-25 Thread Jake Barnes
There is a bit of a demo site here: http://www.teamlalala.com/lark/products-2.html The problem is with the 20 color divs to the right of the main product image. Why doesn't the background image remain visible when I mouse out? On Apr 25, 1:43 am, Jake Barnes wrote: > This shoul

[jQuery] why can't I get a background image to remain on div during mouseout?

2009-04-25 Thread Jake Barnes
This should be the easiest thing in the world - set a background image for a div on mouseover. I'm working on a color picker for a clothing store. The customer can choose any of 20 colors. The colors are represented on screen by 20 tiny divs, each with a background color. When the customer wants