Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript" type="text/JavaScript">
function getImg( target )
{
var myimg = document.createElement("img");
myimg.setAttribute("src", "11.gif");
document.getElementById( target ).appendChild(myimg);
}
window.onload = function()
{
getImg("target");
}
</script>
</head>
<body>
<div id="target"></div>
</body>
</html>
Al posto di 11.gif metti un'img che hai nella stessa directory
e funziona come deve.