Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Random photo gallery

  1. #11
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ha you are ingenious! Thank you so much!! I guess I thought php was something I would have to do in linux and not something I could just drop into my file transfer program. One more question, how would I go about tweeking it so that the pictures are more spaced out? Thanks again : )

  2. #12
    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

    We've dumped the images into a div with an id of 'e5'. So we could put something like so in the stylesheet:

    Code:
    #e5 img {
    	margin: 3px;
    }
    - John
    ________________________

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

  3. #13
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Got it. Thanks again. You've been a huge help.

  4. #14
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    We've dumped the images into a div with an id of 'e5'. So we could put something like so in the stylesheet:

    Code:
    #e5 img {
    	margin: 3px;
    }
    Btw, i want to ask is it possible to drag or copy a picture from the dynamic image array?

  5. #15
    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

    Quote Originally Posted by newbieCoder View Post
    Btw, i want to ask is it possible to drag or copy a picture from the dynamic image array?
    In the normal manner, yes. The PHP code used here simply writes ordinary HTML img tags to the page.
    - John
    ________________________

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

  6. #16
    Join Date
    Jun 2013
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default anyway to do this...

    Quote Originally Posted by Heatherfly View Post
    I am pulling my hair out trying to get this to work.

    I want to make a photo gallery with 20 or so squares that would be randomly populated every night from a group of 100+ photos that are on my server. Like a gallery of random picture-of-the-days.

    I am searching for some sort of Java Script because I am a little unsure about PHP and server side scripting. If there is a code out there that I could just put in my header and my picture placeholders that would be ideal, but I am pulling my hair out trying to get everything that I've found to work for me.

    Can anyone help me?
    anyway to do this and have the pics be links to other websites?

  7. #17
    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

    Please start a new thread for a new question. Please give more specifics and a link to what you have so far.
    - 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
  •