Dieser Artikel beschreibt die Methode von JS -Steuertabellen, um eine leichte Zeile auf der Spaltung zu implementieren. Teilen Sie es für Ihre Referenz. Die spezifische Analyse ist wie folgt:
Dies ist ein sehr schöner Split -Line -Code.
Tatsächlich handelt es sich
Kopieren Sie den Code wie folgt: <html>
<kopf>
<meta http-äquiv = "content-type" content = "text/html; charset = gb2312">
<titels> js farbenfrohe Linien mit Zellen </title> implementiert
</head>
<body>
<Script>
L = Array (6,7,8,9, 'A', 'B', 'B', 'C', 'D', 'E', 'F')
t = "<Tabelle Höhe = 4 Breite = 100% Cellpacing = 0 CellPadding = 0> <tr>"
für (x = 0; x <40; x ++) {t+= "<td id = a_mo"+x+"> </td>"}
document.write (t+"</tr> </table>")
Funktion f1 (y) {für (i = 0; i <40; i ++) {c = (i+y)%20; if (c> 10) c = 20-c
document.all ["a_mo"+(i)]. bgcolor = "'#00"+l [c]+l [c]+"00'"} y ++
setTimeout ('f1 ('+y+')', 1)} F1 (1)
</script>
</body>
</html>
Ich hoffe, dieser Artikel wird für JavaScript -Programme aller hilfreich sein.