Bug Tracker

Ticket #3703: jquery_test.2.html

File jquery_test.2.html, 662 bytes (added by aaron.gundel, 13 years ago)

slightly modified replication

Line 
1
2<html>
3<head>
4  <script src="http://code.jquery.com/jquery-latest.js"></script>
5  <script type="text/javascript">
6  $(document).ready(function(){   
7    var bodyelem = document.getElementsByTagName("body")[0]; 
8    var image = $("<img/>") 
9    image.get(0).src = "http://www.google.com/intl/en_ALL/images/logo.gif";
10    bodyelem.appendChild(image.get(0));
11    /*
12    //UNCOMMENT THIS SECTION AND THE IMAGE(S) WILL APPEAR
13    var image2 = document.createElement("img");
14    image2.src = "http://www.google.com/intl/en_ALL/images/logo.gif";
15    bodyelem.appendChild(image2);
16    */
17  });
18 
19
20  </script>
21</head>
22<body>
23</body>
24</html>
25