Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:16:11 GMT
<script type="text/javascript"> <!-- /* Fade in/out menu bar
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times. */
var iTimer; var iDir = true; var iStop = false; var iCur = iCurMoz = 0; var mImg = document.getElementsByTagName("td").item(5).getElementsByTagName("img");
function doFade(){ if(iCurMoz.toFixed(2) >= 0.99){ iCur -= 3; iCurMoz -= 0.09; } else if(iCurMoz.toFixed(2) <= 0.00){ iCur += 3; iCurMoz += 0.09; } for(i = 0; i <mImg.length; i ++){ if(document.all){ mImg.item(i).style.filter = "alpha(opacity=" + iCur + ")"; } else { mImg.item(i).style.MozOpacity = iCurMoz; } } setTimeout("doFade()", 10); }
doFade();
//--> </script>
Global Headers
|
|