I may be able to figure that out. For now though, here is a solution that lets you drag it off the screen in any direction and still be able to retrieve it:
Change the beginning lines of 'function initializedrag' to look like this:
Code:
function initializedrag(e){
offsetx=ie5? event.clientX+iecompattest().scrollLeft : e.clientX+pageXOffset
offsety=ie5? event.clientY+iecompattest().scrollTop : e.clientY+pageYOffset
This seems to introduce a new bug in IE where if you move the box below the bottom, release it and then try to reacquire it, it jumps down about 3px. To avoid this, change the two instances in the script of:
Code:
document.getElementById("dwindowcontent").style.display=
to:
Code:
document.getElementById("cframe").style.display=
This may reintroduce a bug that 'document.getElementById("dwindowcontent").style.display=' was meant to eliminate but, I couldn't find one.
Added Later:
I was tinkering around with this script a bit more and came up with this beefed up demo:
http://home.comcast.net/~jscheuer1/s...incentered.htm
If you are interested.
Bookmarks