有谁可以告诉我如何修改下面的代码以在用户单击链接时将图片显示到 div 中?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$("a").click(function() {
$("#imageBox").html("<img src=' + this.href + '>");
});
</script>
</head>
<body>
<a href="background.jpg" class="sideLoad">Link to image 1</a>
<a href="background.jpg" class="sideLoad">Link to image 2</a>
<div id="imageBox"></div>
</body>
</html>