【发布时间】:2013-02-04 21:44:03
【问题描述】:
第一页reference。
加载图片的部分:
<div id="lighttable">
<img src="http://throwingupthew.com/girls/01.jpg" alt="01" />
<img src="http://throwingupthew.com/girls/02.jpg" alt="02" />
<img src="http://throwingupthew.com/girls/03.jpg" alt="03" />
etc....
</div>
我如何随机化图像的顺序? 请记住,我不知道在 index.html 中放置任何代码/答案的位置
谢谢。
【问题讨论】:
-
你想用 JavaScript 随机化它们还是...?
-
我想以最简单的方式随机化。除了调整值以改变结果之外,我对 html/javascript 编码一无所知。
-
也许随机化是在 initphotos 函数中完成的?
标签: javascript html