Okay I\'m using jQuery and currently getting max value of scrollbar doing this:
var $body = $(\'body\');
$body.scrollLeft(99999); // will give me the max val
I think that you could use something like this:
this.children().width()*(this.children().length+1)-this.width()-10;
The previous line of code is going to get the width of one of the children and multiply this with by the number of chilren, finally you need to substract the width of the element minus an offteset