I want to make a button to start a script of JQuery SmoothDivScroll. The script is:
<script type=“text/javascript”>
$(window).load(function() {
$(“div#makeMeScrollable”).smoothDivScroll({
autoScroll: “onstart” ,
autoScrollDirection: “backandforth”,
autoScrollStep: 1,
autoScrollInterval: 15,
startAtElementId: “startAtMe”,
visibleHotSpots: “always”
});
});
</script>
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?