Results 1 to 8 of 8

Thread: CSS Image Gallery Question

  1. #1
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation CSS Image Gallery Question

    Hi all,

    I have implemented the css image gallery and it looks great. I just have a quick question.....is it possible for the first image in the gallery to display automatically? I have tried myself but had no look so far.

    If anyone can help me it would be appreciated.

    Thanks

    Dave

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

    Probably.

    Please supply a link to the Dynamic Drive CSS library demo page for this effect.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The address of the gallery is:

    http://www.dynamicdrive.com/style/cs...image-gallery/

    Thanks

  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

    OK, well unless you want to use javascript, it might not be able to be exactly as you envision it. Check out this demo:

    http://home.comcast.net/~jscheuer1/side/cssimagegal.htm

    Works well for the images that fill or that about fill the display zone (gallerycontainer) but, check out the problems with the two text linked smaller images. These could be padded individually as I did for the horse image but, it would be more obvious because they are so much smaller.

    The text and other layout of the overlay could be added to what is the default image, if desired. This could be done by making it an image that includes those things or by actually laying it out into the display zone.

    This could all work out very nicely for images of about the same size.

    Now, I don't know how you would feel about using javascript as this is a css only effect. Some javascript could be added so that the initial image was shown and subsequent images remained until replaced. If done a certain way, this effect could simply be absent when javascript was not available, allowing the gallery to function as it does without javascript.
    - John
    ________________________

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

  5. #5
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The link doesn't show any pictures or the first image on screen.

    Im not using the text links it will all be thumbnail pictures.

    I'm quite happy to use javascipt but I would like to keep the css rollover effect.

    Thanks so far for your help.

  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

    Quote Originally Posted by Interface View Post
    The link doesn't show any pictures or the first image on screen.
    I used the DD images by linking to them via base href and absolute path. Something is blocking that from working, it worked at first. If you copy the page's source and view it locally, you will probably see it in all its glory.

    Or, if you simply cache the images by viewing them all on the DD demo page and then switch to my demo, it should work, unless you have your cache turned off.
    - John
    ________________________

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

  7. #7
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that, its perfect for what I want.

    Will try implementing it on my site tonight.

    Cheers

    Dave

  8. #8
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,
    I am trying to get same image gallary mouseover effect on all my 50plus images and have posted my thread also. How can I achieve that, what coding I need to have that effect?
    http://www.dynamicdrive.com/forums/s...ad.php?t=19682

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
  •