Created
September 2, 2011 01:44
-
-
Save jzmwebdevelopment/1187752 to your computer and use it in GitHub Desktop.
PHP Random Slideshow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = 'catalog/view/theme/default/gallery/'; | |
$files = glob($dir.'*.jpg'); | |
shuffle($files); | |
?> | |
<div id="Box"> | |
<div id="slideShow"> | |
<ul> | |
<?php foreach( $files as $file) : ?> | |
<li><img width="370" height="480" alt="" src="<?=$file?>"/></li> | |
<?php endforeach; ?> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment