Schiesser Tax Solutions, LLC partners with individuals and small businesses as a trusted advisor delivering smart, strategic tax services.
Drawing on her 17 years of experience at Deloitte Tax, LLP and BKD CPAs & Advisors, Lindsey Schiesser provides attentive service tailored to her clients’ specific needs. This allows her clients to focus on their strengths while she focuses on their taxes. |
|
$imglist='';
//$img_folder is the variable that holds the path to the banner images. Mine is images/tutorials/
// see that you don't forget about the "/" at the end
$img_folder = "looping_images/home_page/";
mt_srand((double)microtime()*1500);
//use the directory class
$imgs = dir($img_folder);
//read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)
while ($file = $imgs->read()) {
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
$imglist .= "$file ";
} closedir($imgs->handle);
//put all images into an array
$imglist = explode(" ", $imglist);
$no = sizeof($imglist)-2;
//generate a random number between 0 and the number of images
$random = mt_rand(0, $no);
$image = $imglist[$random];
?>
|
|
|
|
|
|
|