[jQuery] Re: Can jQuery create an element then bind a hover function to it?

2007-12-31 Thread zarino
. Hovering over any other '.show' divs doesn't trigger their effects either. You can only get one effect to happen on the page. :-S Why do you think that is happening? Cheers, Zarino On Dec 27, 12:20 am, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > Zarino - it&#x

[jQuery] Can jQuery create an element then bind a hover function to it?

2007-12-26 Thread zarino
}); } ); As you can see, I'm trying to bind an animation to the hover event of all div.show elements on the page. But because they're created by jQuery, the usual way I'd do it doesn't seem to work. Any suggestions would be greatly appreciated. Many thanks :-) Zarino Zappia

[jQuery] Else If statements - why isn't this working?

2007-11-23 Thread zarino
).next().hide().next().hide().next().hide().next().hide(); } else if (today == "7") { $ ("div.monday").hide().next().hide().next().hide().next().hide().next().hide().next().hide(); } } ); Thanks in advance, Zarino Zappia

[jQuery] Re: Firing off a jQuery action ASAP - before document ready?

2007-11-21 Thread zarino
Hi Andy. Thanks for the suggestion, but I'm not sure it's made much of a difference. Zarino On Nov 21, 4:51 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > have you tried window.ready? > > -Original Message- > From: jquery-en@googleg

[jQuery] Firing off a jQuery action ASAP - before document ready?

2007-11-21 Thread zarino
t is ready? Will I have to use plain javascript (n!), rather than jQuery? Thanks for any light you can shed. Zarino Zappia

[jQuery] Re: Performing actions at specific times of day, or at random?

2007-11-19 Thread zarino
el it's accessed from? Thanks, Zarino Zappia On Nov 17, 7:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > I don't think there's a plugin like that, but you definitely don't > need jQuery to get the hour of the day and check for a range. > > var hour = new Date

[jQuery] Re: Performing actions at specific times of day, or at random?

2007-11-19 Thread zarino
That's excellent Ariel! Thank you very much. I'll try it out asap. :-D Zarino On Nov 17, 7:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > I don't think there's a plugin like that, but you definitely don't > need jQuery to get the hour of the day and check

[jQuery] Performing actions at specific times of day, or at random?

2007-11-16 Thread zarino
rowser's time and date, check which time range it falls within, and summon up the correct stylesheet (or simply add a class to the body tag, to which I'll hook css rules). Similarly, how would I get it to choose a stylesheet at random, from the list of three possibilities? Many thanks, Zarino Zappia

[jQuery] Re: Set element's css 'min-height' to browser's viewport height?

2007-07-08 Thread zarino
ld be something simple! Zarino On Jul 8, 5:23 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > zarino wrote: > > Hi! > > > I'd like to set all elements with the class ".inner" to have a minimum > > height equal to the height of the browser's viewp

[jQuery] Set element's css 'min-height' to browser's viewport height?

2007-07-08 Thread zarino
-easy to do with jQuery, but newbie that I am, I can't figure it out. :-S How would I go about doing this? Many thanks, Zarino

[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-28 Thread zarino
Aahh, fair enough. I'm having to design this for somebody else to maintain (someone with little coding knowledge) and I guessed just having one file would be easier than having two. I'll ask their opinion. But thank you for everything. :-D ~ Zarino On Jun 27, 11:38 pm, Scott Sauy

[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-28 Thread zarino
one directory in, and then "three" to pages another step in... and then use individual $ (body.one).ready(), $(body.two).ready()... etc calls in my jQuery code. But it's a bit ugly. Is there an easier way which doesn't involve adding a class to each body element? Thanks. ~

[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino
Excellent! That was it. It all works brilliantly now. :-D As a side-note: Am I being really picky here, or could the contents of facts.js and custom.js be combined into one file? Seems a shame to have a whole separate javascript file containing just one line of code. Thanks so much. ~ Zarino

[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino
hand sidebar, between the "return to home page" and "KEEP comic strip" areas. Thanks for you input. On Jun 27, 7:44 pm, Scott Sauyet <[EMAIL PROTECTED]> wrote: > zarino wrote: > > How come the javascript governing which file-name to choose isn't >

[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino
cument).ready(function() { var fact = facts[Math.floor(facts.size * Math.random())]; $("#fact-box").load("facts/" + fact + ".html"); }); // HTML snippets in the directory: website/scr/facts/ (eg: "website/ scr/facts/FactA.html") // in the 'parent&#x

[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino
x27; centralised -- for example in the jQuery 'custom.js' file or something -- so it's easy to add and remove new or old facts? Thanks for your imput. We've nearly cracked it! :-D Zarino On Jun 26, 11:07 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > I ag

[jQuery] Randomly insert one of a pre-defined HTML extracts?

2007-06-26 Thread zarino
hed and searched the web, but nothing seems to jump out. Is it too difficult? And if so, does anybody know any other way? Many thanks. Zarino Zappia