Here's an alternative method:
Code:
var gallery=new Array();
// Use a space character between each image for this gallery? (use 1 for yes, 0 for no):
gallery.usespace=1;
//define gallery's image train:
gallery[0]='<table>
<tr>
<td>
<a href="dynamicbook1.gif" onclick="return enlargeimage(this.href);"><img src="photo1.jpg" border="1"></a><br>
Hello!</td>
';
gallery[1]='<td>
<a href="dynamicbook1.gif" onclick="return enlargeimage(this.href, 300, 300);"><img src="photo2.jpg" border="1"></a><br>
How Are</td>
';
gallery[2]='<td>
<a href="http://www.dynamicdrive.com"><img src="photo3.jpg" border="1"></a><br>
You</td>
';
gallery[3]='<td>
<a href="#"><img src="photo4.jpg" border="1"></a><br>
You All</td>
';
gallery[4]='<td>
<a href="#"><img src="photo5.jpg" border="1"></a><br>
Doing</td>
';
gallery[5]='<td>
<a href="#"><img src="photo6.jpg" border="1"></a><br>
This</td>
';
gallery[6]='<td>
<a href="#"><img src="photo7.jpg" border="1"></a><br>
Fine</td>
';
gallery[7]='<td>
<a href="#"><img src="photo8.jpg" border="1"></a><br>
Day This</td>
';
gallery[8]='<td>
<a href="#"><img src="photo9.jpg" border="1"></a><br>
Morning</td>
</tr>
</table>
';
You will also have to increase the height to allow room for the added line of text:
Code:
<script type="text/javascript">
/////////////////////////////////////////////////////////////////////////////////////////
/* Parameter Definitions:
/////////////////////////////////////////////////////////////////////////////////////////
* gallery_array_name - name of the array of the gallery's img train (object name, ex: gallery2)
* rest_area_size - size of the neutral area in the center of the gallery in pixels (integer, ex: 6)
* maxspeed - top speed of the gallery (integer)
* maxwidth - maximum width of the gallery in pixels (integer) must be less than the width of the image train
* startposition - 1 for left start, 0 for right, 2 for center (integer)
* width - width of the gallery in pixels(integer) or percent ('string' with % sign, ex: '75%')
* height - height of the gallery in pixels (integer)
* optional_centering - use [, 'c'] for centering, skip this parameter for no centering ('string')
*****************************************************************************************/
//new cmotiongallery(gallery_array_name, rest_area_size, maxspeed, maxwidth, startposition, width , height, optional_centering)
new cmotiongallery(gallery, 6, 7, 1000, 2, '50%', 255
, 'c')
</script>
Bookmarks