SHOW:
|
|
- or go back to the newest paste.
1 | <html><title>*Happy Birthday*</title> | |
2 | <link rel="SHORTCUT ICON" href="https://firmansyahshidiqwardhana.files.wordpress.com/2012/02/557px-coat_of_arms_of_indonesia_garuda_pancasila-svg.png"> | |
3 | - | <meta content='✌Indonesian Cyber Army✌ ' name='description'/> |
3 | + | <meta content='✌Hacked By Edo Romadon✌ ' name='description'/> |
4 | - | <meta content='Created By Hydra7' name='keywords'/> |
4 | + | <meta content='Hacked By ./MR . E' name='keywords'/> |
5 | <body background =' # 'bgcolor='black'> | |
6 | <center><img src="http://picturestack.com/701/754/dmxHAPPY20BIREsZ.gif"></center><br><hr color="green"> | |
7 | <div align="center" style="z-index:9;visibility:visible;"><style>HTML,BODY{cursor: url("http://downloads.totallyfreecursors.com/cursor_files/iloveyou.ani"), url("http://downloads.totallyfreecursors.com/thumbnails/iloveyou.gif"), auto;}</style> | |
8 | ||
9 | <script language="JavaScans MS;"> | |
10 | ||
11 | function tb5_makeArray(n){ | |
12 | this.length = n; | |
13 | return this.length; | |
14 | } | |
15 | ||
16 | tb5_messages = new tb5_makeArray(3); | |
17 | tb5_messages[0] = "Ciluuukk..."; | |
18 | tb5_messages[1] = "Baaa!!"; | |
19 | tb5_messages[2] = "Duaaaaarrr!!"; | |
20 | tb5_rn\ptType = 'infinite'; | |
21 | tb5_rptNbr = 10; | |
22 | tb5_speed = 50; | |
23 | tb5_delay = 2000; | |
24 | var tb5_counter=1; | |
25 | var tb5_currMsg=0; | |
26 | var tb5_stsmsg=""; | |
27 | function tb5_shuffle(arr){ | |
28 | var k; | |
29 | for (i=0; i<arr.length; i++){ | |
30 | k = Math.round(Math.random() * (arr.length - i - 1)) + i; | |
31 | temp = arr[i];arr[i]=arr[k];arr[k]=temp; | |
32 | } | |
33 | return arr; | |
34 | } | |
35 | tb5_arr = new tb5_makeArray(tb5_messages[tb5_currMsg].length); | |
36 | tb5_sts = new tb5_makeArray(tb5_messages[tb5_currMsg].length); | |
37 | for (var i=0; i<tb5_messages[tb5_currMsg].length; i++){ | |
38 | tb5_arr[i] = i; | |
39 | tb5_sts[i] = "_"; | |
40 | } | |
41 | tb5_arr = tb5_shuffle(tb5_arr); | |
42 | function tb5_init(n){ | |
43 | var k; | |
44 | if (n == tb5_arr.length){ | |
45 | if (tb5_currMsg == tb5_messages.length-1){ | |
46 | if ((tb5_rptType == 'finite') && (tb5_counter==tb5_rptNbr)){ | |
47 | clearTimeout(tb5_timerID); | |
48 | return; | |
49 | } | |
50 | tb5_counter++; | |
51 | tb5_currMsg=0; | |
52 | } | |
53 | else{ | |
54 | tb5_currMsg++; | |
55 | } | |
56 | n=0; | |
57 | tb5_arr = new tb5_makeArray(tb5_messages[tb5_currMsg].length); | |
58 | tb5_sts = new tb5_makeArray(tb5_messages[tb5_currMsg].length); | |
59 | for (var i=0; i<tb5_messages[tb5_currMsg].length; i++){ | |
60 | tb5_arr[i] = i; | |
61 | tb5_sts[i] = "_"; | |
62 | } | |
63 | tb5_arr = tb5_shuffle(tb5_arr); | |
64 | tb5_sp=tb5_delay; | |
65 | } | |
66 | else{ | |
67 | tb5_sp=tb5_speed; | |
68 | k = tb5_arr[n]; | |
69 | tb5_sts[k] = tb5_messages[tb5_currMsg].charAt(k); | |
70 | tb5_stsmsg = ""; | |
71 | for (var i=0; i<tb5_sts.length; i++) | |
72 | tb5_stsmsg += tb5_sts[i]; | |
73 | document.title = tb5_stsmsg; | |
74 | n++; | |
75 | } | |
76 | tb5_timerID = setTimeout("tb5_init("+n+")", tb5_sp); | |
77 | } | |
78 | function tb5_randomizetitle(){ | |
79 | tb5_init(0); | |
80 | } | |
81 | tb5_randomizetitle(); | |
82 | ||
83 | </script><script type="text/javascript"> | |
84 | TypingText = function(element, interval, cursor, finishedCallback) { | |
85 | if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) { | |
86 | this.running = true; // Never run. | |
87 | return; | |
88 | } | |
89 | this.element = element; | |
90 | this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; }); | |
91 | this.interval = (typeof interval == "undefined" ? 100 : interval); | |
92 | this.origText = this.element.innerHTML; | |
93 | this.unparsedOrigText = this.origText; | |
94 | this.cursor = (cursor ? cursor : ""); | |
95 | this.currentText = ""; | |
96 | this.currentChar = 0; | |
97 | this.element.typingText = this; | |
98 | if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++; | |
99 | TypingText.all.push(this); | |
100 | this.running = false; | |
101 | this.inTag = false; | |
102 | this.tagBuffer = ""; | |
103 | this.inHTMLEntity = false; | |
104 | this.HTMLEntityBuffer = ""; | |
105 | } | |
106 | TypingText.all = new Array(); | |
107 | TypingText.currentIndex = 0; | |
108 | TypingText.runAll = function() { | |
109 | for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run(); | |
110 | } | |
111 | TypingText.prototype.run = function() { | |
112 | if(this.running) return; | |
113 | if(typeof this.origText == "undefined") { | |
114 | setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval); // We haven't finished loading yet. Have patience. | |
115 | return; | |
116 | } | |
117 | if(this.currentText == "") this.element.innerHTML = ""; | |
118 | // this.origText = this.origText.replace(/<([^<])*>/, ""); // Strip HTML from text. | |
119 | if(this.currentChar < this.origText.length) { | |
120 | if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) { | |
121 | this.tagBuffer = "<"; | |
122 | this.inTag = true; | |
123 | this.currentChar++; | |
124 | this.run(); | |
125 | return; | |
126 | } else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) { | |
127 | this.tagBuffer += ">"; | |
128 | this.inTag = false; | |
129 | this.currentText += this.tagBuffer; | |
130 | this.currentChar++; | |
131 | this.run(); | |
132 | return; | |
133 | } else if(this.inTag) { | |
134 | this.tagBuffer += this.origText.charAt(this.currentChar); | |
135 | this.currentChar++; | |
136 | this.run(); | |
137 | return; | |
138 | } else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) { | |
139 | this.HTMLEntityBuffer = "&"; | |
140 | this.inHTMLEntity = true; | |
141 | this.currentChar++; | |
142 | this.run(); | |
143 | return; | |
144 | } else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) { | |
145 | this.HTMLEntityBuffer += ";"; | |
146 | this.inHTMLEntity = false; | |
147 | this.currentText += this.HTMLEntityBuffer; | |
148 | this.currentChar++; | |
149 | this.run(); | |
150 | return; | |
151 | } else if(this.inHTMLEntity) { | |
152 | this.HTMLEntityBuffer += this.origText.charAt(this.currentChar); | |
153 | this.currentChar++; | |
154 | this.run(); | |
155 | return; | |
156 | } else { | |
157 | this.currentText += this.origText.charAt(this.currentChar); | |
158 | } | |
159 | this.element.innerHTML = this.currentText; | |
160 | this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : ""); | |
161 | this.currentChar++; | |
162 | setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval); | |
163 | } else { | |
164 | this.currentText = ""; | |
165 | this.currentChar = 0; | |
166 | this.running = false; | |
167 | this.finishedCallback(); | |
168 | } | |
169 | } | |
170 | </script> | |
171 | <div id="typing"> | |
172 | <div style="text-shadow: 0px 0px 7px #FF0000;"> | |
173 | <div style="text-align: center" face="Courier New"> | |
174 | - | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>|-| SELAMAT ULANG TAHUN BOSS |-|</b></span></div></div> |
174 | + | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>|-| SELAMAT ULANG TAHUN TRANS MEDIA |-|</b></span></div></div> |
175 | <div style="text-shadow: 0px 0px 7px #00FF00;"> | |
176 | <div style="text-align: center" face="Courier New"> | |
177 | - | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>Semoga Panjang Umur & Sehat selalu </b></span></div></div> |
177 | + | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>Semoga Semakin Sukses.</b></span></div></div> |
178 | <div style="text-shadow: 0px 0px 7px #00FF00;"> | |
179 | <div style="text-align: center" face="Courier New"> | |
180 | - | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>Semoga Apa yang di inginkan segera tercapai </b></span></div></div> |
180 | + | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>Semoga Semakin Jaya. :)</b></span></div></div> |
181 | <div style="text-shadow: 0px 0px 7px #00FF00;"> | |
182 | <div style="text-align: center" face="Courier New"> | |
183 | - | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>Sukses terus yaa :) </b></span></div></div> |
183 | + | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 22;"><b>Semakin Menjadi Yang Terdepan. :D </b></span></div></div> |
184 | <div style="text-shadow: 0px 0px 7px #00FF00;"> | |
185 | <div style="text-align: center" face="Courier New"> | |
186 | - | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 20;"><b> Semua doa yang Terbaiklah Pokoknya bro </b></span></div></div> |
186 | + | <span style="color: white; font-family: Trebuchet MS, sans-serif; font-size: 20;"><b> Selalu Menjadi Stasiun Tv no 1 </b></span></div></div> |
187 | <br> | |
188 | ||
189 | ||
190 | <center> | |
191 | <div style="text-shadow: 0px 0px 8px #00FF00;"> | |
192 | <div style="text-align: center" face="Courier New"> | |
193 | - | <span style="font-family: Trebuchet MS, sans-serif; font-size: 17;"><span style="color: red;"> | Wish You All The Best | </span><marquee behavior="scroll" direction="left" scrollamount="8" scrolldelay="75" width="100%"> <span style="color: lime; font-size: 40;"> |
193 | + | <span style="font-family: Trebuchet MS, sans-serif; font-size: 17;"><span style="color: red;"> | Sukses Terus Trans Media | </span><marquee behavior="scroll" direction="left" scrollamount="8" scrolldelay="75" width="100%"> <span style="color: lime; font-size: 40;"> |
194 | <br> | |
195 | <center> | |
196 | - | root@Hydra7:~# Maaf ya, ngasih ucapannya agak telat bro :)</a> |
196 | + | root@./MR . E : Selamat Ulang Tahun Trans Media Yang ke 16 </a> |
197 | </span></marquee></span></div></div> | |
198 | </center></div><hr color="Green"><script type="text/javascript"> | |
199 | new TypingText(document.getElementById("typing"), 100, function(i){ var ar = new Array("_", "_", "_", "_"); return " " + ar[i.length % ar.length]; }); | |
200 | TypingText.runAll(); | |
201 | </script> | |
202 | <center><SCRIPT> | |
203 | farbbibliothek = new Array(); | |
204 | farbbibliothek[0] = new Array("#FF0000","#FF1100","#FF2200","#FF3300","#FF4400","#FF5500","#FF6600","#FF7700","#FF8800","#FF9900","#FFaa00","#FFbb00","#FFcc00","#FFdd00","#FFee00","#FFff00","#FFee00","#FFdd00","#FFcc00","#FFbb00","#FFaa00","#FF9900","#FF8800","#FF7700","#FF6600","#FF5500","#FF4400","#FF3300","#FF2200","#FF1100"); | |
205 | farbbibliothek[1] = new Array("#00FF00","#000000","#00FF00","#00FF00"); | |
206 | farbbibliothek[2] = new Array("#00FF00","#FF0000","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00"); | |
207 | farbbibliothek[3] = new Array("#FF0000","#FF4000","#FF8000","#FFC000","#FFFF00","#C0FF00","#80FF00","#40FF00","#00FF00","#00FF40","#00FF80","#00FFC0","#00FFFF","#00C0FF","#0080FF","#0040FF","#0000FF","#4000FF","#8000FF","#C000FF","#FF00FF","#FF00C0","#FF0080","#FF0040"); | |
208 | farbbibliothek[4] = new Array("#FF0000","#EE0000","#DD0000","#CC0000","#BB0000","#AA0000","#990000","#880000","#770000","#660000","#550000","#440000","#330000","#220000","#110000","#000000","#110000","#220000","#330000","#440000","#550000","#660000","#770000","#880000","#990000","#AA0000","#BB0000","#CC0000","#DD0000","#EE0000"); | |
209 | farbbibliothek[5] = new Array("#000000","#000000","#000000","#FFFFFF","#FFFFFF","#FFFFFF"); | |
210 | farbbibliothek[6] = new Array("#0000FF","#FFFF00"); | |
211 | farben = farbbibliothek[4]; | |
212 | function farbschrift() | |
213 | { | |
214 | for(var i=0 ; i<Buchstabe.length; i++) | |
215 | { | |
216 | document.all["a"+i].style.color=farben[i]; | |
217 | } | |
218 | farbverlauf(); | |
219 | } | |
220 | function string2array(text) | |
221 | { | |
222 | Buchstabe = new Array(); | |
223 | while(farben.length<text.length) | |
224 | { | |
225 | farben = farben.concat(farben); | |
226 | } | |
227 | k=0; | |
228 | while(k<=text.length) | |
229 | { | |
230 | Buchstabe[k] = text.charAt(k); | |
231 | k++; | |
232 | } | |
233 | } | |
234 | function divserzeugen() | |
235 | { | |
236 | for(var i=0 ; i<Buchstabe.length; i++) | |
237 | { | |
238 | document.write("<font face='Forte' size='60'><span id='a"+i+"' class='a"+i+"'>"+Buchstabe[i] + "</span></font>"); | |
239 | } | |
240 | farbschrift(); | |
241 | } | |
242 | var a=1; | |
243 | function farbverlauf() | |
244 | { | |
245 | for(var i=0 ; i<farben.length; i++) | |
246 | { | |
247 | farben[i-1]=farben[i]; | |
248 | } | |
249 | farben[farben.length-1]=farben[-1]; | |
250 | ||
251 | setTimeout("farbschrift()",30); | |
252 | } | |
253 | // Zu Demonstrationszwecken***************** | |
254 | var farbsatz=1; | |
255 | function farbtauscher() | |
256 | { | |
257 | farben = farbbibliothek[farbsatz]; | |
258 | while(farben.length<text.length) | |
259 | { | |
260 | farben = farben.concat(farben); | |
261 | } | |
262 | farbsatz=Math.floor(Math.random()*(farbbibliothek.length-0.0001)); | |
263 | } | |
264 | setInterval("farbtauscher()",5000); | |
265 | - | text=" Happy Birthday Mutia Septiani Nento "; //h |
265 | + | text=" Happy Birthday Trans Media ke 16 "; //h |
266 | string2array(text); | |
267 | divserzeugen(); | |
268 | //document.write(text); | |
269 | </SCRIPT></center> | |
270 | <br> | |
271 | - | <center><img src="https://scontent-sin6-2.xx.fbcdn.net/v/t1.0-9/15697418_374634699545694_3254595289661371191_n.jpg?oh=b75c3e05d3fc5ab01e5ccc41fb423ef1&oe=5A4B7C82" width="550" height="350""><br><br><font face="Orbitron" size="3" color="white" class="a">Created By: </font><font face="Orbitron" size="4" color="red" class="a">Hydra7</font><br> |
271 | + | <center><img src="http://nitip-file.blogponsel.me/files/b.jpg" width="550" height="350""><br><br><font face="Orbitron" size="3" color="white" class="a">Created By: </font><font face="Orbitron" size="4" color="red" class="a">Edo Romadon | ./MR . E</font><br> |
272 | - | <span style="color:white; font-family: OCR A Extended; font-size:12;"><b> |+| 30 September 2017 |+| </span></div></div> |
272 | + | <span style="color:white; font-family: OCR A Extended; font-size:12;"><b> |+| 15 Desember 2017 |+| </span></div></div> |
273 | ||
274 | ||
275 | <!--Simply copy and paste just above </body></html> in your page.--> | |
276 | ||
277 | <SCRIPT TYPE="text/javascript"> | |
278 | <!-- Fireworks Display | |
279 | <!-- This script and many more from --> | |
280 | <!-- http://rainbow.arch.scriptmania.com --> | |
281 | ||
282 | if(!window.fireworks) fireworks=new Object(); | |
283 | ||
284 | if(!fireworks.createLayer) | |
285 | { | |
286 | ||
287 | var ns4 = document.layers; | |
288 | var ie4 = document.all; | |
289 | fireworks.objNo=0; | |
290 | ||
291 | fireworks.getObjId = function(){return "fireworks_obj" + fireworks.objNo++;}; | |
292 | ||
293 | fireworks.createLayer = function(theHtml) | |
294 | { | |
295 | var layerId = fireworks.getObjId(); | |
296 | ||
297 | document.write(ns4 ? "<LAYER NAME='"+layerId+"'>"+theHtml+"</LAYER>" : | |
298 | "<DIV id='"+layerId+"' style='position:absolute'>"+theHtml+"</DIV>" ); | |
299 | ||
300 | var el = document.getElementById ? document.getElementById(layerId) : | |
301 | document.all ? document.all[layerId] : | |
302 | document.layers[layerId]; | |
303 | ||
304 | if(ns4) | |
305 | el.style=el; | |
306 | ||
307 | return el; | |
308 | } | |
309 | fireworks.fxLayer = function(theHtml) | |
310 | { | |
311 | if(theHtml == null) return; | |
312 | this.el = fireworks.createLayer(theHtml); | |
313 | } | |
314 | var proto = fireworks.fxLayer.prototype | |
315 | ||
316 | proto.moveTo = function(x,y){this.el.style.left = x;this.el.style.top=y;} | |
317 | proto.setBgColor = function(color) { this.el.style.backgroundColor = color; } | |
318 | proto.clip = function(x1,y1, x2,y2){ this.el.style.clip="rect("+y1+" "+x2+" "+y2+" "+x1+")"; } | |
319 | if(ns4){ | |
320 | proto.clip = function(x1,y1, x2,y2){ | |
321 | this.el.style.clip.top =y1;this.el.style.clip.left =x1; | |
322 | this.el.style.clip.bottom=y2;this.el.style.clip.right =x2; | |
323 | } | |
324 | proto.setBgColor=function(color) { this.el.bgColor = color; } | |
325 | } | |
326 | if(window.opera) | |
327 | proto.setBgColor = function(color) { this.el.style.color = color==null?'transparent':color; } | |
328 | ||
329 | if(window.innerWidth) | |
330 | { | |
331 | gX=function(){return innerWidth;}; | |
332 | gY=function(){return innerHeight;}; | |
333 | } | |
334 | else | |
335 | { | |
336 | gX=function(){return document.body.clientWidth;}; | |
337 | gY=function(){return document.body.clientHeight;}; | |
338 | } | |
339 | fireworks.fxLayer2 = function(theHtml) | |
340 | { | |
341 | this.superC = fireworks.fxLayer; | |
342 | this.superC(theHtml + "C"); | |
343 | } | |
344 | fireworks.fxLayer2.prototype = new fireworks.fxLayer; | |
345 | } | |
346 | fireworks.Spark = function(x, y) | |
347 | { | |
348 | this.superC = fireworks.fxLayer; | |
349 | this.superC("*"); | |
350 | ||
351 | this.dx = Math.random() * 4 - 2; | |
352 | this.dy = Math.random() * 4 - 2; | |
353 | this.ay = .09; | |
354 | this.x = x; | |
355 | this.y = y; | |
356 | this.type = 0; | |
357 | } | |
358 | fireworks.Spark.prototype = new fireworks.fxLayer; | |
359 | ||
360 | fireworks.Spark.prototype.fire0 = function() | |
361 | { | |
362 | var a = Math.random() * 6.294; | |
363 | var s = Math.random() * 2; | |
364 | if(Math.random() >.6) s = 2; | |
365 | this.dx = s*Math.sin(a); | |
366 | this.dy = s*Math.cos(a) - 2; | |
367 | } | |
368 | fireworks.Spark.prototype.fire1 = function() | |
369 | { | |
370 | var a = Math.random() * 6.294; | |
371 | var s = Math.random() * 2; | |
372 | this.dx = s*Math.sin(a); | |
373 | this.dy = s*Math.cos(a) - 2; | |
374 | } | |
375 | fireworks.Spark.prototype.fire2 = function() | |
376 | { | |
377 | var a = Math.random() * 6.294; | |
378 | var s = 2; | |
379 | this.dx = s*Math.sin(a); | |
380 | this.dy = s*Math.cos(a) - 2; | |
381 | } | |
382 | fireworks.Spark.prototype.fire3 = function() | |
383 | { | |
384 | var a = Math.random() * 6.294; | |
385 | var s = a - Math.random(); | |
386 | this.dx = s*Math.sin(a); | |
387 | this.dy = s*Math.cos(a) - 2; | |
388 | } | |
389 | fireworks.Spark.prototype.fire4 = function() | |
390 | { | |
391 | var a = Math.random() * 6.294; | |
392 | var s = (Math.random() > 0.5) ? 2 : 1; | |
393 | if(s==1)this.setBgColor("#FFFFFF"); | |
394 | s -= Math.random()/4; | |
395 | this.dx = s*Math.sin(a); | |
396 | this.dy = s*Math.cos(a) - 2; | |
397 | } | |
398 | fireworks.Spark.prototype.fire = function(sx, sy, fw, cl) | |
399 | { | |
400 | this.setBgColor(cl); | |
401 | ||
402 | if(fw == 1) | |
403 | this.fire1(); | |
404 | else if(fw == 2) | |
405 | this.fire2(); | |
406 | else if(fw == 3) | |
407 | this.fire3(); | |
408 | else if(fw == 4) | |
409 | this.fire4(); | |
410 | else | |
411 | this.fire0(); | |
412 | ||
413 | this.x = sx; | |
414 | this.y = sy; | |
415 | this.moveTo(sx, sy); | |
416 | } | |
417 | fireworks.Spark.prototype.animate = function(step) | |
418 | { | |
419 | this.dy += this.ay; | |
420 | this.x += this.dx; | |
421 | this.y += this.dy; | |
422 | this.moveTo(this.x, this.y); | |
423 | } | |
424 | fireworks.Firework = function(numSparks) | |
425 | { | |
426 | window[ this.id = fireworks.getObjId() ] = this; | |
427 | ||
428 | this.sparkle = new Array(); | |
429 | for(i=0 ; i<numSparks; i++) | |
430 | { | |
431 | this.sparkle[i]=new fireworks.Spark(-10, -10); | |
432 | this.sparkle[i].clip(0,0,3,3); | |
433 | this.sparkle[i].setBgColor("#00FF00"); | |
434 | } | |
435 | this.step = 0; | |
436 | this.timerId = -1; | |
437 | this.x = 0; | |
438 | this.y = 0; | |
439 | this.dx = 0; | |
440 | this.dy = 0; | |
441 | this.ay = 0.2; | |
442 | this.state = "Off"; | |
443 | } | |
444 | fireworks.Firework.prototype.explode = function() | |
445 | { | |
446 | var fw = Math.floor(Math.random() * 5); | |
447 | ||
448 | for(i=0 ; i<this.sparkle.length ; i++) | |
449 | { | |
450 | this.sparkle[i].fire(this.x, this.y, fw, this.color); | |
451 | this.sparkle[i].dx += this.dx; | |
452 | this.sparkle[i].dy += this.dy; | |
453 | } | |
454 | } | |
455 | fireworks.Firework.prototype.getMaxDy = function() | |
456 | { | |
457 | var ydiff = gY() - 30; | |
458 | var dy = 1; | |
459 | var dist = 0; | |
460 | var ay = this.ay; | |
461 | while(dist<ydiff) | |
462 | { | |
463 | dist += dy; | |
464 | dy+=ay; | |
465 | } | |
466 | return -dy; | |
467 | } | |
468 | fireworks.Firework.prototype.animate = function() | |
469 | { | |
470 | if(this.state=="Off") | |
471 | { | |
472 | var colors = new Array("#FF0000", "#00FF00", "#0000FF", "#FFFF00", "#FFFFFF", "#FF00FF"); | |
473 | this.color = colors[Math.floor(Math.random()*colors.length)]; | |
474 | ||
475 | this.step = 0; | |
476 | this.x = gX()/2; | |
477 | this.y = gY()-10; | |
478 | this.dy = this.getMaxDy(); | |
479 | this.dx = Math.random()*-8 + 4; | |
480 | this.dy += Math.random()*3; | |
481 | for(i=0 ; i<this.sparkle.length ; i++) | |
482 | this.sparkle[i].moveTo(-10,-10); | |
483 | this.sparkle[0].setBgColor(this.color); | |
484 | this.state = "Move"; | |
485 | } | |
486 | else if(this.state=="Move") | |
487 | { | |
488 | this.x += this.dx; | |
489 | this.y += this.dy; | |
490 | this.dy += this.ay; | |
491 | this.sparkle[0].moveTo(this.x,this.y); | |
492 | if(this.dy > 1) | |
493 | { | |
494 | this.state="Bang" | |
495 | this.explode(); | |
496 | } | |
497 | } | |
498 | else | |
499 | { | |
500 | if(this.step > 40) | |
501 | this.state="Off"; | |
502 | ||
503 | this.step++; | |
504 | ||
505 | for(i=0 ; i<this.sparkle.length ; i++) | |
506 | this.sparkle[i].animate(this.step); | |
507 | } | |
508 | } | |
509 | fireworks.Firework.prototype.start = function() | |
510 | { | |
511 | if(this.timerId == -1) | |
512 | { | |
513 | this.state = "Off"; | |
514 | this.timerId = setInterval("window."+this.id+".animate()", 30); | |
515 | } | |
516 | } | |
517 | fireworks.Firework.prototype.stop = function() | |
518 | { | |
519 | if(this.timerId != -1) | |
520 | { | |
521 | clearInterval(this.timerId); | |
522 | for(i=0 ; i<this.sparkle.length ; i++) | |
523 | this.sparkle[i].moveTo(-10,-10); | |
524 | this.timerId = -1; | |
525 | this.step = 0; | |
526 | } | |
527 | } | |
528 | fireworks.DisplayStart = function() | |
529 | { | |
530 | if(fireworks.DisplayLoad)fireworks.DisplayLoad(); | |
531 | Display1.start(); | |
532 | Display2.start(); | |
533 | Display3.start(); | |
534 | } | |
535 | Display1 = new fireworks.Firework(30); | |
536 | Display2 = new fireworks.Firework(30); | |
537 | Display3 = new fireworks.Firework(30); | |
538 | fireworks.DisplayLoad=window.onload; | |
539 | window.onload=fireworks.DisplayStart; | |
540 | // --> | |
541 | </SCRIPT> | |
542 | ||
543 | ||
544 | </body> | |
545 | </html> | |
546 | <div style="text-align: center" face="Courier New"> |