Documentation

Talk:Plugins/dimScreen

From jQuery JavaScript Library

Jump to: navigation, search

Thanks for the great plugin :) We made one modification that seems to help with browser compatibility- for the width of the __dimScreen div, we used '100%'. This also makes the plugin robust under horizontal window resizing.



I also appreciate this wonderful plugin very much. It's pretty friggin' sweet. Since jQuery allows you to override the $ function I'd change your references to it to just 'jQuery' for full support. I also noticed in your height and width detection:

$(document).attr('height')

does not work in ie6/7 so I opted for:

jQuery(document).height()

and all was well with the world. (Mauvis Ledford)

--Krunkosaurus 23:47, 10 September 2007 (PDT)


I found a way to get the dimScreen working properly in ie6 when there is not a full page of content on the screen. Use jQuery(window).innerHeight() and jQuery(window).innerWidth() instead of the above methods.

--Krunkosaurus 05:16, 25 January 2008 (PST)


It's seems the above fixed, corrected things in IE6, but prevented the dimScreen from encompassing the scrollable area beneath. Here is the following logic to get around that:

height:( (jQuery(document).height() >= jQuery(window).innerHeight())? jQuery(document).height():jQuery(window).innerHeight())+'px',

width:( (jQuery(document).width() <= jQuery(window).innerWidth())? jQuery(document).innerWidth():jQuery(window).width())+'px'

--Krunkosaurus 06:14, 25 January 2008 (PST)


dimScreenStop don't fadeOut at the fadeIn speed, I believe this is because speed is a string. Suggest changing it to, var speed = parseInt(x.attr('speed'), 10);

--Lcordier 16:01, 5 May 2008 (SAST)