Need some help trying to center the slideshow in a table and can't seem to figure it out. The controls for the slideshow center fine but pictures stay left. I've tried putting center before the img src for the pics and tried putting a center before the form and tried putting center right before the table starts still the images won't center.
<IF {SWITCH_ATTACHSLIDES} and {LINKNUMBEROFIMAGES}> <form name="Oneslideform"> <table width="100%"> <tr> <td colspan="3" align="center" valign="top"> <select name="Oneslide" onChange="Onechange();"> <!-- BEGIN TOPLIST --> <CONFIG>attachments,time,5,ascending,type='link ' AND objectid={LINKID} AND (filetitle LIKE '%.jpg' OR filetitle LIKE '%.gif' OR filetitle LIKE '%.png'),,,0,0,0,0,0,0,,0</CONFIG> <option value="{DIRURL}/thumbnail.php?attachid={ATTACHID}& thumbwidth=500&thumbheight=500" class="button">{ATTACHFILETITLE}</option> <!-- END TOPLIST --> </select> <input type="button" onclick="Oneprevious();" value="<<" title="Previous" name="button" class="button" /> <input type="button" name="Oneslidebutton" onclick="Oneap(this.value);" value="Start" title="AutoPlay" class="button" /> <input type="button" onclick="Onenext();" value=">>" title="Next" name="button" class="button" /> </td> </tr>
<tr> <td width="20%" align="center" valign="top"> <a href="{TRACKLINKURL}" {EXTERNALLINKS}><img src="{LINKVBANNER1}" alt="{LINKTITLE}" /></a></td> <td width="60%" align="center" valign="top"> <!-- BEGIN TOPLIST --> <CONFIG>attachments,time,1,ascending,type='link ' AND objectid={LINKID} AND (filetitle LIKE '%.jpg' OR filetitle LIKE '%.gif' OR filetitle LIKE '%.png'),,,0,0,0,0,0,0,,0</CONFIG> <a href="javascript:Onetransport()"><center><img src="{DIRURL}/thumbnail.php?attachid={ATTACHI D}&thumbwidth=500&thumbheight=500" name="Oneshow" border="0" class="thumbshot"></center></a> <!-- END TOPLIST --> </td> <td width="20%" align="center" valign="top"> <a href="{TRACKLINKURL}" {EXTERNALLINKS}><img src="{LINKVBANNER2}" alt="{LINKTITLE}" /></a> </td> </tr> </table> </form> </IF>
Comments on centering the slideshow
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
Need some help trying to center the slideshow in a table and can't seem to figure it out. The controls for the slideshow center fine but pictures stay left. I've tried putting center before the img src for the pics and tried putting a center before the form and tried putting center right before the table starts still the images won't center.
<IF {SWITCH_ATTACHSLIDES} and {LINKNUMBEROFIMAGES}>
<form name="Oneslideform">
<table width="100%">
<tr>
<td colspan="3" align="center" valign="top">
<select name="Oneslide" onChange="Onechange();">
<!-- BEGIN TOPLIST -->
<CONFIG>attachments,time,5,ascending,type='link ' AND objectid={LINKID} AND (filetitle LIKE '%.jpg' OR filetitle LIKE '%.gif' OR filetitle LIKE '%.png'),,,0,0,0,0,0,0,,0</CONFIG>
<option value="{DIRURL}/thumbnail.php?attachid={ATTACHID}& thumbwidth=500&thumbheight=500" class="button">{ATTACHFILETITLE}</option>
<!-- END TOPLIST -->
</select>
<input type="button" onclick="Oneprevious();" value="<<" title="Previous" name="button" class="button" />
<input type="button" name="Oneslidebutton" onclick="Oneap(this.value);" value="Start" title="AutoPlay" class="button" />
<input type="button" onclick="Onenext();" value=">>" title="Next" name="button" class="button" />
</td>
</tr>
<tr>
<td width="20%" align="center" valign="top">
<a href="{TRACKLINKURL}" {EXTERNALLINKS}><img src="{LINKVBANNER1}" alt="{LINKTITLE}" /></a></td>
<td width="60%" align="center" valign="top">
<!-- BEGIN TOPLIST -->
<CONFIG>attachments,time,1,ascending,type='link ' AND objectid={LINKID} AND (filetitle LIKE '%.jpg' OR filetitle LIKE '%.gif' OR filetitle LIKE '%.png'),,,0,0,0,0,0,0,,0</CONFIG>
<a href="javascript:Onetransport()"><center><img src="{DIRURL}/thumbnail.php?attachid={ATTACHI D}&thumbwidth=500&thumbheight=500" name="Oneshow" border="0" class="thumbshot"></center></a>
<!-- END TOPLIST -->
</td>
<td width="20%" align="center" valign="top">
<a href="{TRACKLINKURL}" {EXTERNALLINKS}><img src="{LINKVBANNER2}" alt="{LINKTITLE}" /></a>
</td>
</tr>
</table>
</form>
</IF>
Thanks Liz
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Center the whole table. <table align="center"
Forum Regular
Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 32
Total Comments: 114
Thanks Paul, some times it's just the simpliest thing.
Liz