Results 1 to 2 of 2

Thread: DHTML Window Widget

  1. #1
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window Widget

    1) Script Title:
    DHTML Window Widget

    2) Script URL (on DD):
    http://dynamicdrive.com/dynamicindex...ndow/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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You can try calling dhtmlwindow.minimize(), which is a private method. For example:

    Code:
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •