QRahimiQ
February 22nd, 2015, 00:40
من چندین تصویر میخوام تصادفی نمایش بدم ،
این روش کد نویسی درسته؟
<style type="text/css">body { background-image: url(../images/backgrounds/rotate.php);}</style>
محتویات فایل php
<?php $backgrounds = glob('path/to/images/*.jpg'); shuffle($backgrounds);?>
این روش کد نویسی درسته؟
<style type="text/css">body { background-image: url(../images/backgrounds/rotate.php);}</style>
محتویات فایل php
<?php $backgrounds = glob('path/to/images/*.jpg'); shuffle($backgrounds);?>