Friday 15 May 2015

Simple JavaScript Slider - Need some OOP help to make it work -



Simple JavaScript Slider - Need some OOP help to make it work -

im in process of creating own slider library pure javascript. have here:

http://jsfiddle.net/bingo14/bhymxrqr/1/

im trying homecoming latest 'currentvalue' getvalue() function, returning 0 can see initial alert.

this.getvalue = function getvalue() { //how homecoming latest current value? homecoming currentvalue; };

how can create updated every time user moves slider? think need help oop principles here!

thanks.

"it update, added setinterval(function() {console.log(myslider.getvalue()) }, 1000); , every sec current value returned"

i wasnt testing properly! alex k. got right

javascript oop slider

No comments:

Post a Comment