I'd like to link a function (to scroll the data) to a div I have.
The page is made out of two divs:
<div class="left">
.....
</div>
<div class="right">
.....
</div>
Now I'd like to link a script to div with class="left" and do
scrolling only in that div.
Scrolling is already solved using MochiKit.Visual.ScrollTo, but I
don't know how to use it only in one div.
B.
>
> Ok, this isn't really MochiKit-related, but define your CSS class as
> follows:
>
> .left {
> overflow-y: auto;
> height: 100%; /* or some fixed pixel value */
> }
>
> Try it with a static page first.
>
> Cheers,
>
> /Per
I already have that for a manual scroll. I want to do it
"automaticaly".
As stated before - the scroll works perfectly on the whole page, but
I'd like to do it only in the div part of the page.
MochiKit documentation says to use addLoadEvent, but I don't know how
to connect it with <div class="left">.
B.