Webmastersite.net
Register Log In

centering the slideshow

Comments on centering the slideshow

azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Dec 06, 2008 - 8:51 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 07, 2008 - 5:16 AM:

Center the whole table. <table align="center"
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Dec 07, 2008 - 9:52 AM:

Thanks Paul, some times it's just the simpliest thing.grin

Liz
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.