Results 1 to 9 of 9

Thread: Window widget Dhtml - Opacity

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

    Default Window widget Dhtml - Opacity

    1) Script Title: Window widget Dhtml

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/

    3) Describe problem:
    I want to set an opacity for the window (div) that is not in use, like the one for unfocusing the handle bar :
    Code:
    this.setopacity(this.lastactivet.handle, 0.5) //unfocus last active window
    I want to do the same thing to the entire window that is not in use/active. but not a modal one, just want to decrease the opacity.
    many 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

    Use this custom version of the script:

    Attachment 4521
    Last edited by jscheuer1; 07-07-2012 at 02:21 PM. Reason: update for early IE
    - 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:

    pouriapn (07-07-2012)

  4. #3
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    many thanks

  5. #4
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    what about doing like this:
    Code:
    this.setopacity(this.lastactivet.contentarea, 0.2)
    this would decrease just the opacity of the content not the whole window.
    does this cause an error?

  6. #5
    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

    In IE 8 and less, if there's iframe content it can become invisible. I'm not sure why this happens. Unless or until I can figure that out, I'd say, "No."

    Unless you're not planning on using any iframe content.
    - John
    ________________________

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

  7. #6
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    using it on ajax.
    thanks a lot

  8. #7
    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

    OK, there appear to be two choices at the moment:

    1. IE 7 loses ClearType on the content, making text in it appear scratchy and a little difficult to read, but iframes are handled well.

    2. IE 7 doesn't lose ClearType on the content, but iframes become invisible at times in IE 8 and IE 7.


    Either way, AJAX loaded and on page content appear to be fine (except for the loss of ClearType in scenario 1). If that's all you're using, I'd go with #2:

    Attachment 4523
    - John
    ________________________

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

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

    pouriapn (07-07-2012)

  10. #8
    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

    I was able to figure out and solve the problems so that even iframe will work in IE 8 and less without loss of ClearType in IE 7. Here's that update:

    Attachment 4526

    It requires an addition to the dhtmlwindow.css file:

    Code:
    .iframewrapper {
    	height: 100%;
    	zoom: 1;
    }
    Still works fine with AJAX, and on page content.

    And since we're no longer dimming the title bar, this line under the .drag-handle selector can be removed from the css as well:

    Code:
    filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
    Last edited by jscheuer1; 07-08-2012 at 05:43 AM. Reason: fix bug in code
    - John
    ________________________

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

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

    pouriapn (07-07-2012)

  12. #9
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    WOW! great
    thank you so much

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
  •