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 Damon - October 10, 2011

Hi,

I just replied to your email. Here is an example slideshow that you could use for anyone else:
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

Get the slideshow working first on a test page without any CMS Builder code.

Then add the slideshow to the CMS Builder page. If you have any issues with it, compare the source of both pages and make adjustments to match the working code.

Hope that helps!
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/