View Full Version : Descriptive text

01-11-2013, 11:48 AM
1) Script Title: Ultimate Fade-in slideshow (v2.4)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: is it possible to have the descrip[tive text to be stylised? Specifically I want the text to be in bold and can see where to change colour but can I also change size of font?

the line of code in the fadeslideshow.js file for color is below:

.eq(1).css({color:'black'}).html(setting.closebutton + setting.longestdesc).end() //"descpanelfg" div


01-11-2013, 05:29 PM
You don't need to edit the script to change any of that. The text in the description is in an element with a class of descpanelfg. So (adjust the values as you desire and/or add property/value pairs):

.descpanelfg {
color: red !important;
font-weight: bold !important;
font-size: 19px !important;

added to a stylesheet for the page or placed in a style section in the head of the page will take care of it. Make sure to use the !important keyword as shown to override any scripted styles.

The browser cache may need to be cleared and/or the page refreshed to see changes.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

01-11-2013, 11:39 PM
Thanks a lot, worked a treat.