hello to all masters,
just wrote a code from my pre-made javascript slider though i have to add function on the same settings with play/pause and stop button.
here's the current site: Slider
here's my Play and Stop code link
and here's the code for value that i want to overwrite when i press Play or Stop button.
advance thanks for the great suggestion and idea.
just wrote a code from my pre-made javascript slider though i have to add function on the same settings with play/pause and stop button.
here's the current site: Slider
here's my Play and Stop code link
Code:
<span><a href="#" id="play" onclick="speed('500')">Play</a> <a href="#" id="stop" onclick="speed('500000')">Stop</a></span>
Code:
//Play button: 500;
//Stop button: 5000000;
var speed = 1000; //default speed
var slider={
num:-1,
cur:0,
cr:[],
al:null,
at:10*speed, //<-- code that will apply from buttons.
ar:true,
}
advance thanks for the great suggestion and idea.
Comment