changing slideshow speed

3 posts by 3 authors in: Forums > CMS Builder
Last Post: October 12, 2011   (RSS)

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>

Re: [towtimes] changing slideshow speed

By gkornbluth - October 12, 2011 - edited: October 12, 2011

Hi Towtimes,

There are a number of really good, free slide show scripts that are compatible with Ipads and Iphones.

There are a number of specific recommendations and some recipes for easy implementation in my CMSB Cookbook http://www.thecmsbcookbook.com

Hope that gets you pointed in a good direction.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php