[jQuery] is there a way to add a class to the body when window is resized below a certain width

2009-12-04 Thread pab
is there a way to add a class to the body when window is resized below a certain width

[jQuery] Re: is there a way to add a class to the body when window is resized below a certain width

2009-12-04 Thread pab
) { //do something}  http://2whoa.com   --- On Fri, 12/4/09, pab fliawebdes...@gmail.com wrote: From: pab fliawebdes...@gmail.com Subject: [jQuery] is there a way to add a class to the body when window is resized below a certain width To: jQuery (English) jquery-en@googlegroups.com Date

[jQuery] adding class whenwindow is resized below 1000px

2009-10-27 Thread pab
Hi everyone, I'm trying to figure out a way to add a class only if the browser is resized by the user at less then 1000px This is what i have going right now. $(function(){ $(window).width('width','100%'); $('body').css('width','w 1000px'); $(body).addClass(no_border); }); as of

[jQuery] background position

2009-02-03 Thread pab
Hi, I was messing around with jonathna snook;s article http://snook.ca/archives/javascript/jquery-bg-image-animations/ I'm trying to set an active state once user clicks on link this is what I have now works, i tried getting the selected state by adding a click function.

[jQuery] accordion doesn't work with more than one paragraph per heading

2008-03-30 Thread pab
$(document).ready(function(){ $(.accordion h2:first).addClass(active); $(.accordion p:not(:first)).hide(); $(.accordion h2).click(function(){ $(this).next(p).slideToggle(slow) .siblings(p:visible).slideUp(slow); $(this).toggleClass(active);