Template:CSU Template 1 top

From 2012.igem.org

(Difference between revisions)
Line 323: Line 323:
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;
-
setTimeout('fade(' + curElemID + ')', (fadeTime/numFadeLoops));
+
setTimeout(function() {fade(curElemID)}, (fadeTime/numFadeLoops));
//Current slide has faded completely
//Current slide has faded completely
Line 338: Line 338:
//Starts next fade.  isFading = false is a required parameter
//Starts next fade.  isFading = false is a required parameter
-
setTimeout('fade(' + nextElemID + ',false)',slideStayTime);
+
setTimeout(function() {fade(nextElemID, 'false')}, slideStayTime);
//Menu bar functions
//Menu bar functions

Revision as of 17:13, 31 July 2012