日期:2014-05-16 浏览次数:20412 次
<html>
<head>
<meta http-equive="content-type" content="text/html; charset=utf-8"/>
<title>Just a test</title>
<script type="text/javascript">
function showpic(whichpic)
{
var source=whichpic.getAttribute("href");
var placeholder=docunment.getElementById("placegolder");
placeholder.setAttribute("src",source);
}
</script>
</head>
<body>
<h1>图片浏览</h1>
<ul>
<li><a href="images/firework.jpg" title="第一张图片" onclick="showpic(this);return stop();">firework</a></li>
</ul>
<img id="placeholder" src="images/placeholder.jpg" alt="my image gallery">
</body>
</html>