Does anyone know if its possible to (or how to) change go through a series of tables on an html site? I have three tables the exact same as below with quotes but I only want to display one at a time and rotate through them. Is js the best way or can someone propose another method? (Keep in mind it has to hold its layout) <table style="width: 100%;" cellspacing="6" cellpadding="6" border="0"> <tbody> <tr> <td width="6%" rowspan="2" valign="top"><img src="http://www.sample_image.jpg" alt="test" width="34" height="45" /></td> <td width="94%"><div align="right"><img src="http://www.sample_image.jpg" alt="quotes" width="12" height="9" />Please ignore this box as it is under construction<img src="http://www.sample_image.jpg" alt="quote" width="12" height="9" /><br /> </div></td> </tr> <tr> <td><div align="right">- unknown </div></td> </tr> </tbody> </table> Code (markup):
If I were you I would place the codes of the three tables into three different php file: table1.php, table2.php and table3.php. Into the file you would like the tables randomly display place this code <?php $random=rand(1, 3); include 'table'.$random.'.php'; ?> Code (markup): You may make the html file extension to get parsed as a php script if your server software is Apache by adding this code into the .htaccess file. AddType application/x-httpd-php .php .htm .html Code (markup):
If you want it to get fade I would use timed ajax requests and would play with the opacity to give fancy look.
Thanks...Although doing a few more searches I may go this way (your responses put me in the right direction) http://www.dyn-web.com/code/rotate_images/rotate_multi.php