<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
img
{
width:200px;
height:200px;
}
</style>
<script src="jquery-1.9.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#Button1').click(function () {
var rand = Math.random(1, 15);
alert(rand);
})
})
</script>
</head>
<body>
<img alt="" src="image1/1.jpg" />
<input id="Button1" type="button" value="随即换图片" />
</body>
</html>