PDA

View Full Version : DHTML Window Widget



Josh_R
08-13-2007, 05:38 PM
1) Script Title:
DHTML Window Widget

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

3) Describe problem:
I am trying to find a way to make a DHTML Window start out Minimized when the page loads, but I have had no success with it yet. all attempts have either made it load normally at full size, or not at all. help would be appreciated, thanks :)

ddadmin
08-13-2007, 08:25 PM
You can try calling dhtmlwindow.minimize(), which is a private method. For example:


var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")

dhtmlwindow.minimize(googlewin.getElementsByTagName("img")[0], googlewin)

The line in red is the code that minimizes the DHTML window. Change "googlewin" to match the name of the window you specified above it.