I want to display random images from a folder on my website example: ../images/ I already thought of using a foreach construction only I don t know how to implement it in the code.
<ul>
{foreach from=../images/ item=imagelink}
<li><img src="{$imagelink}" width="100" height="100" alt=""/></li>
{foreach}
</ul>
我希望有人有一个解决方案,我已经搜索了很多,但找不到解决方案。
我还想稍后显示该文件夹中的所有图像。