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 =
:
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
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
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');
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
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
6 matches
Mail list logo