Results 1 to 5 of 5

Thread: Changing titlebar colors for window widgets

  1. #1
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Changing titlebar colors for window widgets

    1) Script Title: DHTML Window Widgets

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

    3) Describe problem:

    Not a problem, but a question. Is there a way to have different colors for the titlebars of the dhtml windows?

    Thanks

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Sure is...

    Open up dhtmlwindow.css and change the following line:

    Code:
    .drag-handle{ /*CSS for Drag Handle*/
    padding: 1px;
    text-indent: 3px;
    font: bold 14px Arial;
    background-color: #CA0000;
    color: white;
    cursor: move;
    overflow: hidden;
    width: auto;
    filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
    -moz-opacity: 1;
    opacity: 1;
    }

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

    tempfire (06-04-2008)

  4. #3
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the quick reply. What I'd really like to be able to do is have the window titlebars be a different color in different sections of my application. For example: Dark red on the home "portal" page, Blue on a secondary page, green on a third page, etc.

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

    Default

    You can certainly fine tune the title bar's colors for each different window instance on your page. The key is just to target the CSS towards a specific DHTML window based on its "ID". See this thread: http://www.dynamicdrive.com/forums/s...ad.php?t=29965

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    tempfire (06-04-2008)

  7. #5
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    PERFECT!!! That works beautifully. Thanks so much for your help!

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
  •