Hello all I just had a new site setup by the great folks at interactive tools. Now I get an email from the people upstairs they want the image and text to rotate every 10 second. Currently it changes on the load of the page. http://towingequipmentsearch.com/ I hope I don't have to change out all the code for the slide show.
Thank you for your help
<div id="slideshow">
<?php list($slideshowRecords, $slideshowDetails) = getRecords(array(
'tableName' => 'trucks',
'limit' => '1',
'orderBy' => 'RAND()',
'leftJoin' => array(
'chassis_manufacturers' => 'chassis_manufacturerNum',
'chassis_models' => 'chassis_modelNum',
'accounts' => 'accountNum')
));
$slideshowTruck = $slideshowRecords['0'];
$slideshowTitle = $slideshowTruck['chassisYear'] . ' ' . $slideshowTruck['chassis_manufacturers.name'] . ' ' . $slideshowTruck['chassis_models.name'];
if (count($slideshowTruck['image']) > 0){
$imageUrl = $slideshowTruck['image']['0']['urlPath'];
}
else{
$imageUrl = 'http://dummyimage.com/400x300/000/fff&text=No+Image+Available';
}
?>
<p><a href="<?php echo $slideshowTruck['_link']; ?>"><img src="<?php echo $imageUrl; ?>" width="300" height="225"/></a></p>
<div style="text-align:center"><a href="<?php echo $slideshowTruck['_link']; ?>"><?php echo $slideshowTitle; ?></a></div>
<div style="text-align:center"><a href="<?php echo "distributor_details.php?" . $slideshowTruck['accountNum']; ?>"><?php echo $slideshowTruck['accounts.distributor_name']; ?></a></div>
</div>
<hr>