<script>
var fade=function(node){
var level=1;
var step=function(){
var hex=level.toString(16);
node.style.backgroundColor=‘#‘+hex+hex+hex+hex+hex+hex;
if(level<15){
level+=1;
setTimeout(step,100);
}
};
step();//setTimeout(step,100);
};
fade(document.body);
</script>
时间: 2024-10-10 15:59:11