Template:CSU Template 1 top

From 2012.igem.org

(Difference between revisions)
Line 316: Line 316:
//Sets a preliminary opacities. Optional
//Sets a preliminary opacities. Optional
curElem.style.opacity = 1;
curElem.style.opacity = 1;
 +
curElem.style.filter = 'alpha(opacity=100)';
nextElem.style.opacity = 1;
nextElem.style.opacity = 1;
 +
nextElem.style.filter = 'alpha(opacity=100)';
} //end if
} //end if
Line 326: Line 328:
var newOpac = (Math.round(roundNum * (parseFloat(curElem.style.opacity) - (1/numFadeLoops)))) / roundNum;
var newOpac = (Math.round(roundNum * (parseFloat(curElem.style.opacity) - (1/numFadeLoops)))) / roundNum;
curElem.style.opacity = newOpac;
curElem.style.opacity = newOpac;
 +
curElem.style.filter = 'alpha(opacity=' + (newOpac * 100) + ')';
setTimeout(function(){fade(curElemID)}, (fadeTime/numFadeLoops));
setTimeout(function(){fade(curElemID)}, (fadeTime/numFadeLoops));
Line 334: Line 337:
curElem.style.zIndex = 10;
curElem.style.zIndex = 10;
curElem.style.opacity = 1;
curElem.style.opacity = 1;
 +
curElem.style.filter = 'alpha(opacity=100)';
//Sets next slide element.  If there is no next slide,
//Sets next slide element.  If there is no next slide,

Revision as of 17:46, 31 July 2012