On Sep 30, 4:27 pm, Sam Doyle <sammeh....@gmail.com> wrote:
> I'm currently porting works website for iphone. I've wrote some jquery
> for sliding up/down divs:
>
> $(document).ready(function(){
>
> //Corners
> $('#insideContainer').corner('20px');
>
> $('p.link a').removeAttr('href');
> $('p.link a').css('cursor','pointer');
>
> $('p.link a').click(function(){
> $('p.link a').css('color','#ffffff');
> $(this).css('color','#dddddd');
> var page = $(this).attr('id');
> var contentDiv = $(this).attr('rel');
> $('#'+contentDiv).load(page +' #toload');
>
> $('.content').slideUp(1500);
> $('#'+contentDiv).slideDown(500);
> });
>
> });
>
> It works well until I open the 3rd unique div. (opening and closing 2
> unique divs multiple times works perfectly :s). When the 3rd
> individual div is opened it slides down approximately 5 pixels and
> freezes
>
> Any help would be great
Wednesday, September 30, 2009
[jQuery] Re: jQuery slideup/slidedown iphone (3rd click bug)
The site can be viewed at http://d2d.samstestdomain.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment