var margin function scrollbutton act if act right margin margin 100 do

1
2
3
4
5
6
7
8
9
var margin = 0;
function scrollbutton(act)
{
if(act == "right")
{
margin = margin + 100;
document.getElementById("scrolltable").style.margin = "0 0 0 -"+margin+"px";
}
}