
August 14th, 2012, 03:24 PM
|
 |
CSS & JS/DOM Adept
|
|
Join Date: Jul 2004
Location: USA
|
|
Of course it's possible. If it wasn't possible with this script, there are others.
This stops the auto scrolling:
Code:
$("#makeMeScrollable").smoothDivScroll("stopAutoScrolling");
This starts the auto scrolling:
Code:
$("#makeMeScrollable").smoothDivScroll("startAutoScrolling");
On line 463 of the lab page, you'll find this, which attaches the event handler to the link to start the autoscrolling:
Code:
// Start auto scrolling
$("#startAutoScrolling").click(function () {
$("div#makeMeScrollable").smoothDivScroll("startAutoScrolling");
});
I understand what you want, but you're trying to do intermediate level things without learning the basics first.
Last edited by Kravvitz : August 14th, 2012 at 08:55 PM.
Reason: fixed the code tags
|