Results 1 to 3 of 3

Thread: DHTML Window widget (v1.1)

  1. #1
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget (v1.1)

    1) Script Title:

    FF1+ IE6+ Opera 8+
    DHTML Window widget (v1.1)

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem:

    I wanted to know wheter ther is a way to autominimise these windows onload
    like when u press the minimise key at the moment

    and xor to program animation of the windows ...
    a script sliding a window from right to left

    greetings
    whazilla

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

    Default

    You can auto minimize all the DHTML windows when the page loads with something like the below function:

    Code:
    <script type="text/javascript">
    
    function minimizeall(){
    for (var i=0; i<dhtmlwindow.tobjects.length; i++)
    dhtmlwindow.minimize(dhtmlwindow.tobjects[i].getElementsByTagName('img')[0], dhtmlwindow.tobjects[i])
    }
    
    </script>
    
    <body onload="setTimeout('minimizeall()', 500)">
    The array dhtmlwindow.tobjects gives you access to all DHTML window instances on the page, which is the key is making this happen. Regarding the animation though, there's currently no easy way to add such an effect.

  3. #3
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    whazzaaa,

    i thought animation or movemend in the windows was the easy part since ther is the move function to a new instance window

    anyhow thkx for the fast answer
    cant wait to try and burn

    greets
    whazilla

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
  •