闪烁的霓虹灯

作者:袖梨 2022-07-02
提示:您可以先修改部分代码再运行

脚本说明:
第一步:把如下代码加入

区域中:
  }

function animate() {
        // click next radio button
        document.animation.lamps[current].click()

        // if radio button is the last one reset variable to 0 (otherwise increment)
        current = (current == document.animation.lamps.length - 1) ? 0 : ++current 

        // recursive call after speed milliseconds
        timerID = setTimeout("animate()", speed)
}

// -->

 

 

第二步:把

中的内容改为
提示:您可以先修改部分代码再运行

相关文章

精彩推荐