?
my code works fine. Except that the last image while rotating the set, isn’t hidden, the overlapping part is always laid over the rest ..
Any idea ?
[code]
function rotate() {
alert(‘hello world’);
var len = currentPositions.length;
var link1 = currentPositions[0];
var i=0;
for (i=0; i< currentPositions.length-1; i++){
var changed = (i+1)%len;
currentPositions[i] = currentPositions[changed];
}
currentPositions[i] = link1;
var j = 0;
for(i=0, j= currentPositions.length-1; i< currentPositions.length; i++) {
var currentLink = document.getElementById(currentPositions[i]);
currentLink.setAttribute(“style”,”position:absolute;LEFT:” + leftPosition[i] +”;TOP:”+ topPosition[i]);
var currentImg = currentLink.getElementsByTagName(‘img’)[0];
currentImg.setAttribute(“width”, widthArray[i]);
currentImg.setAttribute(“height”,heightArray[i]);
}
}