Log in

View Full Version : Looking for DHTML window



EISD
06-06-2009, 08:15 AM
script name: DHTML Window widget (v1.1)

script location: http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

I'm looking for a little help modifying the DHTML script to behave like: http://prototype-window.xilinus.com/PWC-OS/


if anyone can help me modify this script to minimize into an "icon" with no controls (kind of like an OS nav bar) with an onclick event to pop up back where it was. I'd be truly greatful!

thanks

EISD
06-06-2009, 07:17 PM
minimize:function(button, t){
dhtmlwindow.rememberattrs(t)
button.setAttribute("src", dhtmlwindow.imagefiles[2])
button.setAttribute("title", "Restore")
t.state="minimized" //indicate the state of the window as being "minimized"
t.contentarea.style.display="none"
t.statusarea.style.display="none"
if (typeof t.minimizeorder=="undefined"){ //stack order of minmized window on screen relative to any other minimized windows
dhtmlwindow.minimizeorder++ //increment order
t.minimizeorder=dhtmlwindow.minimizeorder
}
t.style.width="175px"
var windowspacing=t.minimizeorder*185 //spacing (gap) between each minmized window(s)
t.style.top=96.3+"%"
t.style.left=windowspacing-t.minimizeorder-240+"px"


still working on disabling the move function while minized. If anyone wants to help, feel free. thanks!

ddadmin
06-07-2009, 09:22 AM
Closed due to double posting.