<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">
        window.onload = function () {
            ImageSrc();
        }
        function ImageSrc() {
            var imgs = document.getElementsByClassName("ArticleBody")[0].getElementsByTagName("img");
            for (var i = 0, l = imgs.length; i < l; i++) {
                imgs[i].src = imgs[i].src.replace("gjbt", "www"); //img[i].src is the reference to the image.
            }
        }
    </script>
</head>
<body>
    <div class="ArticleBody">
        <img src="image/01.jpg" />
        <img src="image/04.jpg" />
        <img src="image/02.jpg" />
        <img src="image/03.jpg" />
    </div>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-12-04
  • 2021-10-04
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2021-11-04
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-03-05
  • 2021-07-11
相关资源
相似解决方案