日期:2014-05-17 浏览次数:20483 次
<img alt="" src="../login/validate.aspx?t='javascript:Math.random()'" id="getcode_img" title="看不清请点击!" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#getcode_img").attr("src", "../login/validate.aspx?t=" + Math.random());
alert($("#getcode_img").attr("src"));
}
);
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<img alt="" id="getcode_img" title="看不清请点击!" />
</div>
</form>
</body>
</html>