Side navigation
Ticket #3703: jquery_test.2.html
File jquery_test.2.html, 0.6 KB (added by aaron.gundel, January 08, 2009 09:38PM UTC)
slightly modified replication
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var bodyelem = document.getElementsByTagName("body")[0];
var image = $("<img/>")
image.get(0).src = "http://www.google.com/intl/en_ALL/images/logo.gif";
bodyelem.appendChild(image.get(0));
/*
//UNCOMMENT THIS SECTION AND THE IMAGE(S) WILL APPEAR
var image2 = document.createElement("img");
image2.src = "http://www.google.com/intl/en_ALL/images/logo.gif";
bodyelem.appendChild(image2);
*/
});
</script>
</head>
<body>
</body>
</html>
Download in other formats:
Original Format
File jquery_test.2.html, 0.6 KB (added by aaron.gundel, January 08, 2009 09:38PM UTC)
slightly modified replication
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var bodyelem = document.getElementsByTagName("body")[0];
var image = $("<img/>")
image.get(0).src = "http://www.google.com/intl/en_ALL/images/logo.gif";
bodyelem.appendChild(image.get(0));
/*
//UNCOMMENT THIS SECTION AND THE IMAGE(S) WILL APPEAR
var image2 = document.createElement("img");
image2.src = "http://www.google.com/intl/en_ALL/images/logo.gif";
bodyelem.appendChild(image2);
*/
});
</script>
</head>
<body>
</body>
</html>