[jQuery] Re: passing this reference to setTimeout()

2008-12-15 Thread ekallevig
Thanks! On Dec 15, 11:59 am, Mike Alsup wrote: > > I'm using jQuery.hover for a dropdown menu and I want to add a slight > > delay to mouseOut functions but I can't figure out how to pass the > > jQuery(this) reference into the setTimeout() function... can this be > > done? > > > jQuery('li.drop

[jQuery] passing this reference to setTimeout()

2008-12-15 Thread ekallevig
I'm using jQuery.hover for a dropdown menu and I want to add a slight delay to mouseOut functions but I can't figure out how to pass the jQuery(this) reference into the setTimeout() function... can this be done? ex. jQuery('li.drop').hover( function(){ jQuery(this).addCla

[jQuery] Re: preloading images with jquery in IE

2007-12-15 Thread ekallevig
mentioned earlier: array[item] = $(' ').attr('src','/images/blah.jpg'); Feed-2 wrote: > > > I didn't quite understand your solution, ekallevig. Can you explain it > again, please? > > I also tried Jannik's solution but it didn't w

[jQuery] Re: preloading images with jquery in IE

2007-12-14 Thread ekallevig
I figured it out last night after I posted this. I just needed to assign the new element to a variable of some sort (or in my case an array item). I already had created an array to keep track of whether or not each image had already been preloaded (to avoid duplication), so instead of setting tho

[jQuery] preloading images with jquery in IE

2007-12-13 Thread ekallevig
I'm having some issues preloading images with jquery in IE. I tried just creating the image in memory with the appropriate source like this: $(' ').attr('src',iBuildThePathHere); But only Firefox will preload the image that way. The only way I've been able to successfully achieve the preloading

[jQuery] hiding elements via stylesheet

2007-11-05 Thread ekallevig
I'm a little confused about jquery and prototype's hide/show methods. In the prototype api, it says that "Element.show cannot display elements hidden via CSS stylesheets. Note that this is not a Prototype limitation but a consequence of how the CSS display property works." I know that if you set