Results 1 to 3 of 3

Thread: Descriptive text

  1. #1
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Descriptive text

    1) Script Title: Ultimate Fade-in slideshow (v2.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.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:

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

  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

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

    Code:
    .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.
    - John
    ________________________

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

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

    magnetik12 (01-11-2013)

  4. #3
    Join Date
    Sep 2012
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot, worked a treat.

Similar Threads

  1. Replies: 14
    Last Post: 12-18-2013, 02:06 AM
  2. Designate Image w/Descriptive Tooltip Placement?
    By MrsB in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-26-2010, 08:36 AM
  3. Replies: 2
    Last Post: 07-04-2010, 08:12 PM
  4. Replies: 2
    Last Post: 04-03-2007, 12:03 PM

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
  •