[jQuery] Re: Scrolling Problem

2010-02-20 Thread macgyver47
Thanks Nathan, it works as expected !
Great help !

On 20 fév, 21:34, Nathan Klatt n8kl...@gmail.com wrote:
 On Sat, Feb 20, 2010 at 9:13 AM, macgyver47 jrl...@wanadoo.fr wrote:
  div1 class=post
     div class=title
  
  div10 id=post
    div class=title
  I am trying: clicking on div#title belonging to div1 scrolls to
  div#title belonging to div2 and so on

 $().ready(function() {
   $(.title).click(function() {
     var thisPost = $(this).parent();
     var nextPost = thisPost.next(.post);
     if ( ! nextPost.length ) nextPost = thisPost.parent().find(.post);
     var positionOfNextTitle = nextPost.find(.title).position(); // or 
 offset()
     window.scrollTo(positionOfNextTitle.left, positionOfNextTitle.top);
   });

 });

 http://jsbin.com/adoti/edit

 Nathan


[jQuery] Re: Scrolling problem

2009-09-01 Thread Kevin

Nevermind. After much trial and error, I pieced together some 'dirty'
code to make it work. You can see it at the link above if you are
having the same issues.

Thanks!
Kevin


[jQuery] Re: Scrolling problem

2009-08-22 Thread Kevin

I kind of founf a way to do it using:

  jQuery('#mycarousel').jcarousel({start:NewStrt});

The only thing is the images disapear, but pressing the scroll
buttons, I can see the dynamic images load in the status bar so it
appears it is working, just with now invisible images.

Can anyone point me in the right direction?

Thanks!

On Aug 15, 12:04 pm, Kevin diskhand...@gmail.com wrote:
 I guess I should mention that I'm using jcarousel and thst you need to
 click on one of the index pictures to start things up.

 Thanks!

 On Aug 14, 10:34 pm, Kevin diskhand...@gmail.com wrote:



  I managed to get the scrolling to kinda work – if I set it up with
  static LI then I can get the scrolling to work the way I want it to,
  sans being able to pass the number of the image I want to be shown
  (unless I put it in the text field of the anchor tag, which shows with
  the image) but I have no way of passing the other variables to call my
  updating button. Also, using the static it takes much longer to load
  the page.

  I’m looking to be able to set a variable – like NewStrt – to be the
  first image in the carousel by calling a simple function such as
  ScrollTo(NewStrt) or mycarousel.ScrollTo(NewStrt). Using the “function
  mycarousel_initCallback(carousel)” scrolling function doesn’t work
  with dynamic loading, and I can’t pass my variables with static
  loading. Please help.

  If you would like to see what I'm doing to get a better idea, you can
  see it here (along with my current code):

 http://ssbbs.dyndns.org/panic/rpicts.asp

  Thanks in advance for any assistance with this.

  Kevin- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Scrolling problem

2009-08-15 Thread Kevin

I guess I should mention that I'm using jcarousel and thst you need to
click on one of the index pictures to start things up.

Thanks!

On Aug 14, 10:34 pm, Kevin diskhand...@gmail.com wrote:
 I managed to get the scrolling to kinda work – if I set it up with
 static LI then I can get the scrolling to work the way I want it to,
 sans being able to pass the number of the image I want to be shown
 (unless I put it in the text field of the anchor tag, which shows with
 the image) but I have no way of passing the other variables to call my
 updating button. Also, using the static it takes much longer to load
 the page.

 I’m looking to be able to set a variable – like NewStrt – to be the
 first image in the carousel by calling a simple function such as
 ScrollTo(NewStrt) or mycarousel.ScrollTo(NewStrt). Using the “function
 mycarousel_initCallback(carousel)” scrolling function doesn’t work
 with dynamic loading, and I can’t pass my variables with static
 loading. Please help.

 If you would like to see what I'm doing to get a better idea, you can
 see it here (along with my current code):

 http://ssbbs.dyndns.org/panic/rpicts.asp

 Thanks in advance for any assistance with this.

 Kevin