View Full Version : Can I replace bkgd colour with an image?

12-15-2010, 09:00 PM
Ultimate Fade-in slideshow (v2.4)

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):

.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!

12-16-2010, 12:19 AM
.eq(0).css({'background':'black', 'background-image': 'url(blah.png)', 'opacity':0.7}).end()


12-16-2010, 02:25 PM
Many thanks, Nile - that's perfect!

12-16-2010, 10:37 PM
No problem, I'm glad to help :D

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"