PDA

View Full Version : positioning slideshow



gorgo
09-07-2011, 04:05 AM
I have used Dynamic Drive to put slideshow in php page I am building with Dreamweaver 3. No matter what I do I cannot get it to centre in the column. It seems to need a big area on the left. This does not happen with simple pics alone.Thanks

djr33
09-07-2011, 04:10 AM
PHP generates regular HTML. This means there are two steps: 1) determining the output you want; 2) making the PHP generate that output.

This is a question about modifying a dynamic drive script, not about PHP, so it belongs in a different forum. I'll move it there now.

Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Also please post a link to your page so we can see what is happening. If this is not a problem on the demo page, then we'll need to see your version.

gorgo
09-09-2011, 04:25 AM
thanks I haven't put it up yet and not sure what the response actually means (I'm a novice at this). Are DD's scripts Linux compatible?

jscheuer1
09-09-2011, 04:31 AM
Yes they are. Which DD script are you using?

gorgo
09-09-2011, 04:33 AM
thanks....I'm using the one at http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

jscheuer1
09-09-2011, 04:52 AM
In Step 2:


<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="2" height="22"><center>
<script>
if (linkornot==1)
document.write('<a href="javascript:transport()">')
document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')
if (linkornot==1)
document.write('</a>')
</script>
</center></td>
</tr>
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="backward();return false">Previous Slide</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="forward();return false">Next Slide</a></td>
</tr>
</table>

<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
<a href="http://dynamicdrive.com">Dynamic Drive</a></font></p>

Align the table center and pick a width for it, perhaps the width of your images, perhaps a little wider. On the demo page the images are 170 pixels wide, and 200 turns out to be a good width, so zooming in on the highlighted line from above, add the highlighted:


<table align="center" width="200" border="0" cellspacing="0" cellpadding="0">

Remember you need to pick a width (red in the above) that works for your images. Use their width or like 30 more than their width.