Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ajax grabs website interface pictures waterfall stream notes

Shulou Source: shulou.com Published: 2022-06-02 08:43:21 10月27日 Update

Use php combined with ajax to grab pictures from other websites and use them locally!

Ajax code section

Picture waterfall stream body {margin:0;} # ul1 {width:1080px; margin:100px auto 0;} li {width:247px; list-style:none; float:left; margin-right:10px;} li div {border:1px solid # 000; padding:10px; margin-bottom:10px;} li img {width:225px Display:block;} _ window.onload = function () {var oUl = document.getElementById ('ul1'); var aLi = document.getElementsByTagName (' li'); / / alert (aLi); var iLen = aLi.length; / / initialization data var cpage=1; $.get ('. / demo1.php', {cpage:cpage}, function (data) {/ / alert (data)) Var data = JSON.parse (data); / / alert (data); for (var I = 0; I

Tags: Pictures data parts waterfalls websites code functions height encapsulation interfaces notes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno MariaDB Microsoft Xiaomi