Hi:
Can any one suggest me how to implement the Code 1 logic into Code 2.I have mentioned the code1, code2 below.
Code1:
function init()
{
for (var i=0; i<8; i++)
{
document.getElementById('btn' + i).displayValue = i;
document.getElementById('btn' + i).onclick = function(){display(this.displayValue);};
}
}
Code2:
var i;moveTimer = new Array(8); for(i=0;i<8;i++)
{
moveTimer[i] = window.setInterval(function() {moveSlideLeft('img' + i);},50);
}
Thanks:
Suresh