Try using scrollWidth. However, in Firefox there is a bug where scrollWidth will only report the visible width if a parent has overflow hidden (it reports the correct scrollHeight). What I've done in the past is to clone the node and insert it somewhere else in the DOM, check the offsetWidth and then remove it.
-- Brandon Aaron On 1/16/07, Kolman Nándor <[EMAIL PROTECTED]> wrote: > > > > > Hi! > > > > I want to create a vertical scrolling news ticker. I have the following > structure: > > <div id="divParent" style="width: 300px; overflow: hidden;"> > > <div>News1, news2, ….</div> > > </div> > > > > I set the inner div to relative and set the left position to scroll it. It > works fine, but after a while the inner div scrolls out of view. I wanted to > check if the inner width is still overflow on the right edge, if not I would > change the scrolling direction. > > > > How do I get the real width of the inner width? (I tried width, offsetWidth, > clientWidth but none of the gives the real width.) > > > > Nandi > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
