javascript - scroll left after onclick load() -


i have problem horizontal website. clicking switches div content. if scrolled far right new content out of sight left. i've done:

<a href="#" class="img" onclick="$('div.container').hide().load('test.html').fadein(1500);return false;.scrollleft()";><img src="images/1.jpg" / height="200px"></a> 

is there possibility in on click action? or in test.html load action?

.animate({'left':'+=50'}); 

worked far, no put scrolling 0. added left...

thanks in advance! cheers, nico


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -