Switching backgrounds, while switching text
问题 I was able to make the text loop infinitely and the body color change once: <?php?> <style type="text/css"> <!-- header{background-color:orange;} #color1{background-color:red;} #color2{background-color:green;} #color3{background-color:blue;} --> </style> <script type="text/javascript"> <!-- var flip = (function() { var flip = ['_addText1','_addText2','_addText3']; var count = -1; return function() { return flip[++count % flip.length]; } }()); --> </script> <body id="color1"> <header onclick=