<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript">
function reloadimage(url) {
document.getElementById("code").src = url ;
}
</script>
</head>
<body>
<div>
<form id="form" action="log" method="post">
<div class="left">
验证码:
</div>
<div class="right">
<a href="javascript:reloadimage('showcode.jsp?'+Math.random())" >
<img src="showcode.jsp" id="code">换一张?
</a>
</div>
</form>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript">
function reloadimage(url) {
document.getElementById("code").src = url ;
}
</script>
</head>
<body>
<div>
<form id="form" action="log" method="post">
<div class="left">
验证码:
</div>
<div class="right">
<a href="javascript:reloadimage('showcode.jsp?'+Math.random())" >
<img src="showcode.jsp" id="code">换一张?
</a>
</div>
</form>
</div>
</body>
</html>