您的位置:编程知识库>渐隐渐显

渐隐渐显

  • 2011-10-26渐隐渐现fadeIn和fadeOut

    function fadeIn(el){ el.style.opacity = 0; el.style.filter = ‘alpha(opacity = 0)’; el.style.display = ‘block’; var n = 0; function fadeShow(){ if (n < 1){ n += 0.1; el.style.opacity = n; el.style.filter = ‘alpha(op...