首页javascriptimgjQuery HTML Element - 如何点击显示图像

jQuery HTML Element - 如何点击显示图像

我们想知道如何点击显示图像。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.10.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    $('img').click(function() {
        $(this).attr('src', 'http://www.w3cschool.cn/style/download.png');
    });
});
</script>
</head>
<body>
  <div id="slideshow">
    <img class="one" alt="Slide" id="slideShow" />
  </div>
</body>
</html>