How to make button to start this script?

I want to make a button to start a script of JQuery SmoothDivScroll. The script is:

<script type=“text/javascript”>
$(window).load(function() {
autoScroll: “onstart” ,
autoScrollDirection: “backandforth”,
autoScrollStep: 1,
autoScrollInterval: 15,
startAtElementId: “startAtMe”,
visibleHotSpots: “always”

Now I don’t know how to make the onclick code of the button to start this script: <input type=“button” onclick=“??” />

Can somebody help?

Their lab page provides examples of how.