SHOW:
|
|
- or go back to the newest paste.
1 | <!DOCTYPE html> | |
2 | <html> | |
3 | ||
4 | <head> | |
5 | <title>Pyrpyr</title> | |
6 | <meta charset="UTF-8" /> | |
7 | <style> | |
8 | ||
9 | </style> | |
10 | <script> | |
11 | function init() { | |
12 | var enter = "\n" | |
13 | punkty = ['Punkt pierwszy' + enter, 'Punkt drugi' + enter, 'Punkt trzeci' + enter, 'Punkt czwarty' + enter] | |
14 | punkty = punkty.join("") //tutaj chciałam żeby nie było przecinków ale tabela wariuje XD | |
15 | var textarea = document.getElementById("textarea") | |
16 | textarea.innerHTML = punkty | |
17 | j = 0 | |
18 | interval = setInterval(function () { | |
19 | ||
20 | textarea.prepend(enter) | |
21 | ||
22 | j ++ | |
23 | ||
24 | ||
25 | if (j > 20) { | |
26 | ||
27 | textarea.innerHTML = punkty | |
28 | j = 0 | |
29 | } | |
30 | }, 500) | |
31 | } | |
32 | </script> | |
33 | ||
34 | </head> | |
35 | ||
36 | <body onload="init()"> | |
37 | <textarea cols="50" rows="20" id="textarea"> | |
38 | ||
39 | </textarea> | |
40 | ||
41 | </body> | |
42 | ||
43 | </html> |