»
Tiếng AnhTiếng PhápTiếng Việt

In - Đèn giáng sinh - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Multimedia » Đèn giáng sinh
URL: https://www.javascriptbank.com/tnt-pc-christmas-lights.html

Đèn giáng sinh © JavaScriptBank.comSử dụng hiệu ứng nền chớp giật kết hợp các dãy màu và một tập tin .MID để tạo nên một hiệu ứng mừng Giáng Sinh khá bắt mắt.

Phiên bản đầy đủ: jsB@nk » Multimedia » Đèn giáng sinh
URL: https://www.javascriptbank.com/tnt-pc-christmas-lights.html



JavaScript
<SCRIPT language=JavaScript><!-- // Script MIDI playing. By Magic Maker & TNTif (navigator.appName == "Netscape") {document.write('<EMBED SRC="5onit.mid" AUTOSTART=TRUE LOOP=INFINITE></EMBED>') }else { if (navigator.appName == "Microsoft Internet Explorer")document.write('<BGSOUND SRC="5onit.mid" LOOP="6">')}//--></SCRIPT><SCRIPT language=JavaScript><!-- Hide from JavaScript-Impaired Browsersvar pos = 10;function initArray() {this.length = initArray.arguments.length;for (var i = 0; i < this.length; i++) {this[i] = initArray.arguments[i];  }}/* This is just a modification of a script that I found that changed colors. I added some speed to it and made it look Christmasy. You can add text in between the marquee tags. Feel free   tochange the colors as desired  in the array below.    Youmay add colors if desired by adding more  array   variables(col[x] = "newcolor";)  but if you do, you   will  need toadd to the "pos>9" statement below.*/var col=new initArray("4b","5b","8b","8b");function chgCol() {col[1]="red"col[2]="black"col[3]="lime"col[4]="mediumblue"col[5]="snow"col[6]="red"col[7]="black"col[8]="lime"col[9]="mediumblue"col[10]="snow"col[11]="red"col[12]="black"col[13]="lime"col[14]="mediumblue"col[15]="snow"col[16]="red"col[17]="black"col[18]="lime"col[19]="mediumblue"col[20]="snow"col[21]="red"col[22]="black"col[23]="lime"col[24]="mediumblue"col[25]="snow"col[26]="royalblue"col[27]="red"col[28]="black"col[29]="lime"col[30]="powderblue"col[31]="red"col[32]="snow"col[33]="peru"col[34]="gold"col[35]="navy"col[36]="palevioletred"col[37]="paleturquoise"col[38]="palegreen"col[39]="black"col[40]="red"col[41]="mediumblue"col[42]="orange"col[43]="lime"col[44]="gold"col[45]="green"col[46]="navy"col[47]="navajowhite"col[48]="red"col[49]="mistyrose"col[50]="mintcream"col[51]="midnightblue"col[52]="mediumvioletred"col[53]="mediumturquoise"col[54]="mediumspringgreen"col[55]="mediumslateblue"col[56]="black"col[57]="black"col[58]="red"col[59]="mediumblue"col[60]="mediumaquamarine"col[61]="maroon"col[62]="magenta"col[63]="orange"col[64]="limegreen"col[65]="lime"col[67]="lightyellow"col[68]="lightsteelblue"col[69]="mediumblue"col[70]="gold"col[71]="lightseagreen"col[72]="black"col[73]="lightpink"col[74]="lightgrey"col[75]="lightgreen"col[76]="lightgoldenrodyellow"col[77]="lightcyan"col[78]="lightcoral"col[79]="red"col[80]="lemon"col[81]="lawngreen"col[82]="lavenderblush"col[83]="lavender"col[84]="black"col[85]="ivory"col[86]="indigo"col[87]="indianred"col[88]="hotpink"col[89]="snow"col[90]="greenyellow"col[91]="lime"col[92]="gray"col[93]="goldenrod"col[94]="gold"col[95]="ghostwhite"col[96]="gainsboro"col[97]="fuchsia"col[98]="forestgreen"col[99]="floralwhite"col[100]="firebrick"col[101]="dodgerblue"col[102]="dimgray"col[103]="deepskyblue"col[104]="deeppink"col[105]="darkviolet"col[106]="darkturquoise"col[107]="darkslategray"col[108]="darkslateblue"col[109]="darkseagreen"col[110]="darksalmon"col[111]="darkred"col[112]="darkorchid"col[113]="darkorange"col[114]="darkolivegreen"col[115]="darkmagenta"col[116]="darkkhaki"col[117]="darkgreen"col[118]="darkgray"col[119]="darkgoldenrod"col[120]="darkcyan"col[121]="darkblue"col[122]="crimson"col[123]="cornsilk"col[124]="cornflowerblue"col[125]="coral"col[126]="chocolate"col[127]="chartreuse"col[128]="cadetblue"col[129]="burlywood"col[130]="brown"col[131]="blueviolet"col[132]="blue"col[133]="blanchedalmond"col[134]="black"col[135]="bisque"col[136]="beige"col[137]="azure"col[138]="aquamarine"col[139]="aqua"col[140]="antiquewhite"col[141]="hotpink"col[142]="sky blue"col[143]="yellow"pos++;  if (pos<0||pos>140) {pos = 0;    }document.bgColor = col[pos];setTimeout("chgCol()",90);/* Change above set to every 10 seconds (1000 = 1 sec)  Ifyou wish to speed it up, lower the number. To slow itdown, raise the number. */}// End Hiding --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload="chgCol();doClock()"><MARQUEE bgColor=black loop=infinite scrollAmount=7 width="25%" align="middle">Merry Christmas To All</MARQUEE></FONT></I></CENTER><FONT color=purple size=6><MARQUEE bgColor=lime loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=red loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=blue loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=snow loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=lime loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=red loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=blue loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=gold loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=snow loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=lime loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=red loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT><BR><BR><FONT color=purple size=6><MARQUEE bgColor=blue loop=infinite scrollAmount=10 width="100%" align="middle"></MARQUEE></FONT></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->