thanks for that Paul, Tried combinations of these and still finding its jerky in IE. Funny thing, in Firefox, when have no animation on the hide function eg 0, it just dissapears are you would expect. But, in IE, it slides as it hides. Bizarre.
Anyone else have a simple slider code that would work across browsers needs to work in IE7 On Thu, Jan 13, 2011 at 7:26 AM, Paul Bennett <[email protected]>wrote: > Hi Brendan, > > You may want to use jquery's built in toggle, show and hide methods: > > http://api.jquery.com/toggle-event/ > http://api.jquery.com/show/ > http://api.jquery.com/hide/ > > I've had good experience with them (well, with show() and hide() in > particular) and they seem to provide a smooth slide across different > browsers. > > Your code (untested) could simply end up like this: > > $('#newsexpand').toggle( > function() {$(this).show(500);}, > function() {$(this).hide(500);} > ); > > HTH, > Paul > > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to [email protected] > To unsubscribe, send email to > [email protected]<nzphpug%[email protected]> -- Kind Regards, Brendan Brink SMS Marketing Consultant | Manager Sell2Cell Ltd. 021 0246 1646 | [email protected] | www.sell2cell.co.nz We provide customized, cost-effective SMS & Web Solutions Need a website? Need to integrate text-messaging into your business or website? Contact us today for a free no-obligation quote! VISIT OUR ASSOCIATED WEBSITES: textvouchers.com | textguru.co.nz WARNING This email contains information which is CONFIDENTIAL and may be subject to LEGAL PRIVILEGE. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy the email or attachments. If you have received this in error, please notify us immediately by return email, facsimile, or telephone (call us collect). -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
