[jQuery] Re: Hide/Close div when clicked outside of it.

2008-05-02 Thread Jimslam
not help to do it: > $("#wrapper").not('#divLoginBox1') > > On May 1, 10:14 pm, Jimslam <[EMAIL PROTECTED]> wrote: > > > The Easiest method would be to create a "wrapper" div that takes up > > the entire screen and assign an "onClick&qu

[jQuery] Re: Hide/Close div when clicked outside of it.

2008-05-01 Thread Jimslam
The Easiest method would be to create a "wrapper" div that takes up the entire screen and assign an "onClick" event to that, which would then contain the other div. For example: Login box content The CSS for the DIV id="wrapper" would be something like: #wrapper { posit

[jQuery] Re: JQuery timer with reset option

2008-03-29 Thread Jimslam
UPDATE: I had set the "mousemove" event to bind to "window": $(document).ready(function() { startTimer(); $(window).bind("mousemove", function() { resetTimer(); }); }); That works fine in FF, but IE had some trouble

[jQuery] Re: JQuery timer with reset option

2008-03-24 Thread Jimslam
Here's a page timer I'm using - right now it's set to 15 seconds and displays the current count every second in a div with id "timer". There's probably a more elegant solution, but this can at least be a start. The key is clearing the "setTimeout" function when the timer gets reset, as just sett