[jQuery] Re: Float on top using jQuery

2008-07-10 Thread Ambient.Impact
This can be done with CSS alone, in everything but IE 6. postion:fixed is your friend. There are a few workarounds for IE 6, though, using JavaScript, or IE's proprietary "behaviours" (which use JavaScript, but are linked through stylesheets) or expressions, which are basically JavaScript in CSS.

[jQuery] Re: Question about Event Handling Optimization

2008-06-27 Thread Ambient.Impact
While I can't answer your question, if no else can, here's a method I use when building a website: I give each page a unique ID on the element. This is generated by a PHP script, but you could do it manually as well. Then I use a switch statement in my main JavaScript file, testing for $ ('body'

[jQuery] Re: bugs

2008-06-27 Thread Ambient.Impact
If you did: $(selector).bind('load', function() { Instead of: $(selector).each(function() { You wouldn't have to wait for all images to load, each one would automatically run once it's loaded. I'm willing to bet that would work. On Jun 26, 4:02 pm, Luke <[EMAIL PROTECTED]> wrote: > OK

[jQuery] Re: don't animate elements which are in progress of animation?

2008-06-01 Thread Ambient.Impact
The easiest way to do this is using the .is() method and the :animated selector: if (!$(this).is(':animated')) { (only runs if the element isn't being animated) } Also, if you do want to run anyways, but cancel all current animations, you've got to add a little bit to the above, as .stop() o

[jQuery] Re: jQuery Effects (show, hide, slideUp, slideDown...) glitch with padding or margin

2008-06-01 Thread Ambient.Impact
That's because jQuery doesn't animate the padding and margin, you have to do that yourself. You can see a similar issue on the jquery.com main page, with the little demo. It jumps right at the start, when it first becomes visible, probably because of margins. I don't know why it would only occur a

[jQuery] Re: jQuery handlers getting varibles from caller...

2007-11-08 Thread Ambient.Impact
One way to do this would be to include a link (Google) in a table cell with a class (so you can find it) in your HTML. Then, when the page loads, grab the URL from the href attribute of the link, and remove the table cell containing the link. This way you get very good marks in the unobtrusive are

[jQuery] Re: Jquery 1.2 and Interface Plugin

2007-11-07 Thread Ambient.Impact
Parts of Interface still work with 1.2. I've read (and verified) that it's mostly to do with the changes in the animation system, so the parts that you should avoid are the effects (those that start in "ifx"), because Interface overwrites parts of jQuery's animation system. If you leave those out,

[jQuery] Re: Bind function on font-size changed

2007-10-31 Thread Ambient.Impact
On Oct 31, 8:42 pm, Olaf <[EMAIL PROTECTED]> wrote: > I have tested this version 1.0 is works perfect in IE + FF, not on Opera9.2 > Yes is not change the Font-size in Opera so, this should work on zoom, or? > And what is with IE7-Zoom? No, it doesn't work with page zoom, only font size changes. I

[jQuery] Re: Bind function on font-size changed

2007-10-30 Thread Ambient.Impact
jQem is completely broken as of jQuery 1.1.3 and up. I haven't tested it on 1.2 but I'm fairly sure it's still broken. It causes 100% CPU usage. Luckily, I emailed the author Dave Cardwell, and he sent me a link to an updated version, that he's not released yet. He says it should production ready,

[jQuery] Re: Simple plugin to rollove an image

2007-06-22 Thread Ambient.Impact
I very much disagree with the following two points: On Jun 21, 10:51 pm, "howard chen" <[EMAIL PROTECTED]> wrote: > 2. Put rollover stuffs into CSS is no good: CSS for layout & design, > JS for effect > 1. CSS can't preload image, the plugin can 2. This is a subject that's certainly debatable, s