Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    27
    Member #
    14344
    I am building a page which needs to have 4 sets of photos on it with about 8 photos in each set. I just want to have a forward and backward arrow under each set, for scrolling backwards and forwards to view photos. Can anyone help me do this? I've used on the onclick swap image behaviours before - but then I had a numbered list under the photo for users to click on, not just one arrow. The photos won't have captions and wont't need thumbnails.
    Any help much appreciated.
    I use Dreamweaver mx2004
    Thanks

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    There are a couple of approaches to this.

    1) Using Javascripting, where all of them are pre-loaded and some
    Javascripting is used to make them appear.

    2) Using PHP, where the script displays them. This would require that
    the page refreshes each time.

    3) Using PHP, but using an inline frame <iframe> where the photos are
    displayed. This would allow the photos to change and the page would
    not refresh.

    If you provided us with a link to a page where you have one set displayed,
    we could see what you have an determine the best solution. Also, if you
    happened to have all of the photos in one directory, that would make things
    easier too.

    Also, since using PHP would be a good idea, you will need to change the
    extension of your page from .html to .php (and we assume your webhost
    already allows PHP scripting). But keep in mind that once you have your
    page as a PHP script, I don't think you'll be able to view it with Dreamweaver.
    You'll have to upload it to your webhost server to view it.

    And I'm mentioning PHP because it would allow you to add as many photos
    as you wish, and also change them around. The script would handle the
    "previous" and "next" arrows automatically. You would not have to edit any
    webpages when you add/edit your photos.


    .


  4. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    27
    Member #
    14344
    Thanks very much for your time on this.

    I haven't finished building the page or preparing the photos yet - and was hoping to know how I was going to proceed before doing so since it could affect the size of photos (if they all had to be the same size, for example, which they currently aren't). Have to say I'm a little scared of php since I've never used it... Am not ruling it out, but would be interestd initially in understanding how to do this using Javascripting.

    Would this require you having a link to the page? Alternatively could I attach the page as it is with its associated style sheets?

    Thanks again.




    Quote Originally Posted by mlseim
    There are a couple of approaches to this.

    1) Using Javascripting, where all of them are pre-loaded and some
    Javascripting is used to make them appear.

    2) Using PHP, where the script displays them. This would require that
    the page refreshes each time.

    3) Using PHP, but using an inline frame <iframe> where the photos are
    displayed. This would allow the photos to change and the page would
    not refresh.

    If you provided us with a link to a page where you have one set displayed,
    we could see what you have an determine the best solution. Also, if you
    happened to have all of the photos in one directory, that would make things
    easier too.

    Also, since using PHP would be a good idea, you will need to change the
    extension of your page from .html to .php (and we assume your webhost
    already allows PHP scripting). But keep in mind that once you have your
    page as a PHP script, I don't think you'll be able to view it with Dreamweaver.
    You'll have to upload it to your webhost server to view it.

    And I'm mentioning PHP because it would allow you to add as many photos
    as you wish, and also change them around. The script would handle the
    "previous" and "next" arrows automatically. You would not have to edit any
    webpages when you add/edit your photos.


    .

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    As far as your HTML and CSS, everything would stay the same as you
    would normally do it. The part where the photos appear would be
    a PHP script that would go into the photo directory and pull them out
    to be displayed. The arrow buttons would tell the script which one's
    to display.

    The main reasons for using PHP would be the ability to display any photos,
    no matter how many you have, you would not have to edit your page
    each time you change your photos, because PHP doesn't care what
    they are called, or how many there are. And, with PHP you could have
    the script automatically resize each photo on-the-fly.

    That being said, you can still continue to work on your page and come up
    with a design (all of your HTML and CSS). When done, give us a URL to
    look at.

    To see the power behind using PHP, take a look at this website:
    http://www.zjacobsonart.com

    View the portfolio such as "sculptures" and see how the whole thing is
    done with PHP ... the previous and next buttons, the full-size image pages,
    etc. The photos are stored in a directory, and the PHP script does the rest.
    The only thing that gives it away is the extension of the files--- .php


  6. #5
    Junior Member
    Join Date
    Nov 2006
    Posts
    27
    Member #
    14344
    OK. Looks like I need to take the plunge!
    Will come back next week with a URL for you if that's ok.
    Thanks again.

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    Take the plunge ... this will open your eyes to amazing things.
    You'll have so many new ideas for projects, you won't know what to do.


  8. #7
    Junior Member
    Join Date
    Nov 2006
    Posts
    27
    Member #
    14344
    OK. I've uploaded 2 pages. The homepage and the Gallery page. On the Gallery page I've prepared the first set of photos for the window entitled 'performance photos'. I've just put the first one in there. Do you need access to the folder with the other photos?
    Here's the link:
    http://www.dizigniz.pwp.blueyonder.co.uk/gallery.htm

  9. #8
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    For now, remove the restrictions on the photo (gallery) directories:
    http://www.dizigniz.pwp.blueyonder.c...mages/gallery/

    It would be best to have 4 separate directories with photos
    stored in them ... one directory for each gallery.

    The PHP script will look at each gallery separately to pick out the
    photos from the directory. If they are all stored in one directory,
    the script will not know which photos go with which directory.


  10. #9
    Junior Member
    Join Date
    Nov 2006
    Posts
    27
    Member #
    14344
    I'm sorry, am not sure what you mean by removing the restrictions on the photo gallery directories?
    Also - all the photos for 'performance gallery' are in the 'gallery' folder - there's not photos for the other windows in this folder yet. Would it be better if I had a folder called 'gallery' and then 4 sub-folders with the 4 sets of photos in?

  11. #10
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    Quote Originally Posted by dizigniz
    I'm sorry, am not sure what you mean by removing the restrictions on the photo gallery directories?
    Also - all the photos for 'performance gallery' are in the 'gallery' folder - there's not photos for the other windows in this folder yet. Would it be better if I had a folder called 'gallery' and then 4 sub-folders with the 4 sets of photos in?
    Yes, then you would have

    Images/gallery/gallery1
    Images/gallery/gallery2
    Images/gallery/gallery3
    Images/gallery/gallery4

    By restrictions, I mean ...

    If I try to view the photos (files) in your gallery folder, I can't ... I'm forbidden:
    http://www.dizigniz.pwp.blueyonder.c...mages/gallery/

    I'm trying to create a working example, but I don't have any photos to work with.

    If I could view your gallery directories, I could copy the photos you want to actually use.

    Here is my working example that I'm experimenting with ...
    But as you can see, I only have the one photo. I can't test anymore without more photos.

    http://www.catpin.com/robmills



Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:06 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com