Results 1 to 6 of 6

Thread: positioning slideshow

  1. #1
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default positioning slideshow

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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 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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes they are. Which DD script are you using?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In Step 2:

    Code:
    <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:

    Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •