[jQuery] Change background based of time of day using jquery

2007-09-26 Thread bsuttis
I'm curious if I could use jquery to change my body's background based on time of day. I'm not looking to do this server-side with php, I would like the background to change based on the visitor's time, not the server's. I've found this code, just wondering if I can jquery-ize: script var now =

[jQuery] Re: Change background based of time of day using jquery

2007-09-26 Thread bsuttis
: Instead of document.write('body bgcolor=orange text=#FF') Use $(body).css(background-color,blue) or $(body).addClass(noon) I think the time part could potentially be a switch, but that's just readability. Glen On 9/25/07, bsuttis [EMAIL PROTECTED] wrote: I'm curious if I could use

[jQuery] Strip a href links from a div

2007-09-03 Thread bsuttis
Is it possible to strip links from a designated div with jquery? I've searched for a stripping mechanism, but haven't had any luck yet. I realize my request is pretty strange, I realize it'd be easier to not create links in the first place, but before I do that, I'm just curious about jquery's

[jQuery] Array of numbers in contains()

2007-08-16 Thread bsuttis
Hi, I'm appending a word to a number like so: $(.field-item:contains('25')).append(': Extreme'); My question is, given that the numbers 20-25 all should append 'Extreme', is there an easier way than doing the following? $(.field-item:contains('25')).append(': Extreme');

[jQuery] Is it possible to show/hide a div with a class one at a time instead of all at once

2007-06-14 Thread bsuttis
Sorry for the vague subject, I rewrote it a few times and it still doesn't make much sense, hopefully what I say below does. I'm trying to implement jQuery into my comments to enable users to show/hide them as they read them. My problem occurs that using my current jQuery code, every comment

[jQuery] Re: Is it possible to show/hide a div with a class one at a time instead of all at once

2007-06-14 Thread bsuttis
Awesome, it works! Thanks Sean, much appreciated. On Jun 14, 6:19 pm, Sean Catchpole [EMAIL PROTECTED] wrote: Try this: $('li.hide-comm-single').click(function(){ $(this).parents('.comment') .children().not('ul').hide(); return false; }); ~Sean