Results 1 to 5 of 5

Thread: Switch Content: how to bold headers once clicked?

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Switch Content: how to bold headers once clicked?

    1) Script Title: Switch Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Describe problem:

    I am wondering if it is possible to bold text once a header item is selected? I am currently using the script with persistence disabled and the contract/expand all feature on.


    Thanks for any help!

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Find this in the script:
    Code:
    bobexample.setColor('darkred', 'black')
    Darkred is the color when the headers are clicked and black when not
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is there a way to modify the script though so that the actual font weight changes to bold? Or maybe a larger font size..

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Take a look at this thread, which contains the modification for adding a "setClass" method to the script. It's based on the .js code before the latest update to Switch Content script for Ajax headers though, but the changes are very simple, so you should be able to just open up both the current and modified .js files, and add the changes in the later to the former. Let us know if you have trouble doing that.

  5. #5
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah, thank you. I got the script working now to do exactly what I want.

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
  •