$(window).scroll(function(){ $('#input0').val( $(document).scrollLeft() ); });
.scrollLeft(value:number) 横方向のスクロール量を取得する。
scrollLeft : px