Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Putting a description container on my images

    (I posted this in the CSS forum, but no one is biting so maybe I should've asked here!)

    Hi. I am using the Javascript Kit Cut & Paste Thumbnail Slider from here: http://www.javascriptkit.com/script/...mbslider.shtml I've got it working and looking nice on my page.

    My question is, I would like to add a description to the images, and I see that in the thumbnail.css file, there is a class called .description_container. But, I don't know how or where to use it with this slider. Or, if it is just extra code that isn't set up to be used with this slider?

    Thanks in advance for the help!

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    You are obviously right ... the plugin will insert a div with class="description_container", but will set it to display:none

    Unfortunately I don't find any code in the plugin that will enable you to provide each image with a description. So the plugin might have to be amended for this to work.

  • #3
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    I've taken the time and amended the plugin: http://pastebin.com/fxQu8VjC

    The only difference: You can now give an option image_descriptions as an array that contains strings of image descriptions. If you don't give the array, or omit an entry, or set an entry to "", the description will not show

  • #4
    New to the CF scene
    Join Date
    Nov 2013
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Is it possible to list simply the folder name of images?

    For the same cut & paste Thumbnail Slider script, is there a way to tell the script to just use all the images in a dedicated folder named xyz? If I have 60+ images in that folder it would be nice not to have to type them all into the 'thumbs' array. Thanks.

  • #5
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    nope, Javascript is unable to read folder content from the server. This is clearly a task for a server side script, it won't help you within jQuery though.

  • Users who have thanked devnull69 for this post:

    minijer (11-12-2013)


  •  

    Posting Permissions

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