Results 1 to 4 of 4

Thread: Can I replace bkgd colour with an image?

  1. #1
    Join Date
    Dec 2010
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Can I replace bkgd colour with an image?

    Ultimate Fade-in slideshow (v2.4)
    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    Not a problem (this is a fantastic, solid script!) but a question - I would like to know if it's possible to replace the background colour that appears behind the image title with an image. I have found the line of code that I imagine would need to be altered (line 239):

    Code:
    .eq(0).css({background:'black', opacity:0.7}).end()
    But, I have next to no js programming knowledge, so I don't know the correct manner in which to amend the 'black' part of the script to refer to my desired image.

    Any help or advice much appreciated!

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    .eq(0).css({'background':'black',  'background-image': 'url(blah.png)', 'opacity':0.7}).end()
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    srlagarto (12-16-2010)

  4. #3
    Join Date
    Dec 2010
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Many thanks, Nile - that's perfect!

  5. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No problem, I'm glad to help

    Here on DD, we like to keep things organized. In an effort to do so, you have the option to set a thread to resolved when an issue is fixed. To make the status of the thread resolved:
    1. Go to your first post
    2. Edit your first post
    3. Click "Go Advanced"
    4. In the dropdown next to the title, select "RESOLVED"
    Jeremy | jfein.net

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
  •