[jQuery] Re: help with menu and show/hide divs

2009-03-14 Thread Adam Jessop
Do something like: first second third JS: $(function(ev) { $('#links a').click(function(ev){ $('#content div').hide(); id = $(this).attr('id'); $('#' + id + 'Div').show(); ); }); Un

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of brian Sent: 05 March 2009 18:47 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Animate using relative % On Thu, Mar 5, 2009 at 1:12 PM, Adam Jessop wrote: > Well contrary to

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
Behalf Of brian Sent: 05 March 2009 18:47 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Animate using relative % On Thu, Mar 5, 2009 at 1:12 PM, Adam Jessop wrote: > Well contrary to the domain name, it is a real site with no threat, disable > your JS first if you like! I was joking

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
bject: [jQuery] Re: Animate using relative % On Thu, Mar 5, 2009 at 8:22 AM, Adam Jessop wrote: > Sure, > > The site in question is at: http://be.0wned.co.uk Do you really expect anyone to click that link with JS enabled? ;-) I thi

[jQuery] Re: Current item child index ?

2009-03-05 Thread Adam Jessop
Give the li's an ID and just use that for the step number e.g: Step one Step two Then: $("#stepsList li").click(function() { // load stepContent ===> not a problem id = $(this).attr('id'); $("#stepFooter").html("Viewing "+ id.replace("-"," ") +" of "+$("#stepsList li").length);

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
uot;#city").animate({ top:'-565%' },1600); This moves the position into the correct position, but proves the case that it uses px instead of % which is no good to me as on browser resize it loses its relative position. I hope this helps, please let me know if I can assi

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
y").animate({ top:'-565%' },1600); This moves the position into the correct position, but proves the case that it uses px instead of % which is no good to me as on browser resize it loses its relative position. I hope this helps, please let me know if I can assi

[jQuery] Animate using relative %

2009-03-05 Thread Adam Jessop
1.3.2 Adam Jessop.