Try this out. In dhtmlwindow.js replace the getviewpoint function (starts at line 186) with this one:
Code:
getviewpoint:function(){ //get window viewpoint numbers
var ie=false, browserver=7;
/*@cc_on @*//*@if(@_jscript_version >= 5)ie = true; browserver = /MSIE (\d+)/.exec(navigator.userAgent)[1];@end @*/
var domclientWidth=document.documentElement && parseInt(document.documentElement.clientWidth) || 100000 //Preliminary doc width in non IE browsers
this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
this.scroll_top=browserver<7? this.standardbody.scrollTop : 0;
this.scroll_left=browserver<7? this.standardbody.scrollLeft : 0;
this.docwidth=(ie)? this.standardbody.clientWidth : (/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth, window.innerWidth-16)
this.docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
},
In the dhtmlwindow.css file, change the position to fixed at the beginning here:
Code:
.dhtmlwindow{
position: fixed;
border: 2px solid black;
visibility: hidden;
background-color: white;
}
.drag-handle{ /*CSS for Drag Handle*/
padding: 1px;
text-in . . .
On the page(s) with this script, place this conditional stylesheet as shown, after the link for the dhtmlwindow.css stylesheet:
Code:
<link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />
<!--[if lt IE 7]>
<style type="text/css">
.dhtmlwindow {
position: absolute;
}
</style>
<![endif]-->
<script type="text/javascript" src="windowfiles/dhtmlwindow.js">
/***********************************************
* DHTML Window Widget- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay int . . .
The windows, whether full size or minimized will now be fixed. You cannot scroll them out of view. But you can still drag them around.
Except that is for IE 6 and less. In those browsers things will be the same as they were.
Bookmarks