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
    Dec 2008
    Posts
    10
    Member #
    17850
    What i want to do is create a gallery, but rather than have a separate page or window I would like the user of the site to be able to change the background image of the page, using forward and backwards buttons.

    What is the best way to go about doing this? Is it possible for the images to all be pulled from a folder dynamically? Or should I enter all the image names/locations then work from that?

    Examples, help, anything would be great, thanks.


    PS: Hello I am new to the forums, hopefully this place will be a great resource.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    I don't understand what this sentence means:
    "I would like the user of the site to be able the background image of the page "

    There must be some words missing?

    ==========================

    Maybe LightBox is something you may want to use.
    You don't need any other pages, just a bunch of thumbnails.

    Example:
    http://www.pollybarton.com/commissions.php

    Click on one of the thumbs, then it enlarges and becomes the gallery,
    with a PREV and NEXT button when you put your mouse on the
    full-size image.

    Use Google to search for: lightbox


  4. #3
    Junior Member
    Join Date
    Dec 2008
    Posts
    10
    Member #
    17850
    Fixed, I really need to remember to go over my post a few times...

  5. #4
    Junior Member
    Join Date
    Dec 2008
    Posts
    10
    Member #
    17850
    Anyone?

  6. #5
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    Now I have to ask ...

    You mean the background of the whole body? Or the background
    of a section ... perhaps changing an image within an <iframe>?

    And is it OK to refresh the page or not?


  7. #6
    Junior Member
    Join Date
    Dec 2008
    Posts
    10
    Member #
    17850
    I would like to change the BG for the whole page, using next and back buttons.

  8. #7
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    Can the page be refreshed?

    If it can be refreshed ....

    You page will either have an extension of .php, or you will have your
    webhost process .html pages as PHP (using .htaccess).

    At the very top of your page, you will have a PHP script that reads a variable
    from your link (back or next). It pulls the image out of a database and
    changes the body background.

    Too hard to answer with an example, because not enough information.

    You didn't say how many backgrounds there were, and how often you will
    be adding or deleting images. Are they all the same size? Does the background
    shown need to remain (using cookies)? Is it OK if the page refreshes to change
    the background?

    If you could create 3 test pages with different backgrounds, we could
    show you a working example. And I mean you give us the URLs to those
    test pages not just some screenshots.


  9. #8
    Junior Member
    Join Date
    Dec 2008
    Posts
    10
    Member #
    17850
    Here is the page as it is. There will be maybe 50 or so different bg's. I want it to be like a gallery but with the BG's changing.

    http://johntbrown.com/sandbox/lopano/

  10. #9
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    I'll ask this again ...

    Is it OK if your page refreshes?

    If it can refresh, you would use PHP ...
    If it has to change without refreshing, you use Javascripting.

    Two totally different methods.


  11. #10
    Junior Member
    Join Date
    Dec 2008
    Posts
    10
    Member #
    17850
    I could go either way.


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 08:58 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com