HTML Shuffle div图像javascript

时间:2018-12-08 20:48:51

标签: javascript html css

如何在结果中随机播放这些图像。

<div class="row">
  <div class="column">
    <img src="https://i-h1.pinimg.com/736x/87/e9/38/87e938ab69a614cddb14a6866b2478d0.jpg" onclick="app();" style="width:100%">

    <img src="https://i-h1.pinimg.com/564x/32/03/4f/32034f6da33f2932d88c6d6db7fa117a.jpg" style="width:100%">

    <img src="https://i-h1.pinimg.com/736x/96/e6/54/96e654398c4b2cd7afc03410d636dbea.jpg" style="width:100%">

    <img src="https://i-h1.pinimg.com/736x/4e/78/48/4e7848375fa721845f4986006229555a.jpg" style="width:100%">

  </div>
  <div class="column">
    <img src="https://i-h1.pinimg.com/736x/1a/b0/d4/1ab0d4ef04e3e789396ae744f626c68a.jpg" style="width:100%">

    <img src="https://i-h1.pinimg.com/736x/41/fd/31/41fd312937d0fd0e864d8fdd53f055ba.jpg" style="width:100%">

    <img src="https://i-h1.pinimg.com/736x/06/98/94/069894936419220407b4b11edfca833d.jpg" style="width:100%">

    <img src="https://i-h1.pinimg.com/736x/18/8b/bf/188bbfa47af6b445cf2a5a1869c90566.jpg" style="width:100%">

  </div>  
</div>

如何使用js随机播放这些图像。每次应该在顶部放置不同的图像。

1 个答案:

答案 0 :(得分:1)

X

DEMO