OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link href="initiator.css" rel="stylesheet" type="text/css"> | 3 <link href="initiator.css" rel="stylesheet" type="text/css"> |
4 <body> | 4 <body> |
5 <img src="resource.php?type=image&random=1&size=100"> | 5 <img src="resource.php?type=image&random=1&size=100"> |
6 <div class="image-background">This div has background image set from CSS.</div> | 6 <div class="image-background">This div has background image set from CSS.</div> |
7 <div id="div-without-class">This div will have background image set from JavaScr
ipt.</div> | 7 <div id="div-without-class">This div will have background image set from JavaScr
ipt.</div> |
8 <style>@import "style.css";</style> | 8 <style>@import "style.css";</style> |
| 9 <iframe src="empty.html"></iframe> |
9 <script> | 10 <script> |
10 function loadData() { | 11 function loadData() { |
11 var xhr = new XMLHttpRequest(); | 12 var xhr = new XMLHttpRequest(); |
12 xhr.open("GET", "resource.php?type=image&random=1&size=400", true); | 13 xhr.open("GET", "resource.php?type=image&random=1&size=400", true); |
13 xhr.send(null); | 14 xhr.send(null); |
14 console.log("Done."); | 15 console.log("Done."); |
15 } | 16 } |
16 | 17 |
17 loadData(); | 18 loadData(); |
18 </script> | 19 </script> |
19 </body> | 20 </body> |
20 </html> | 21 </html> |
OLD | NEW |