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