PDA

View Full Version : DHTML Window widget (v1.1)



whazilla
02-27-2008, 05:43 PM
1) Script Title:

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

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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

ddadmin
02-27-2008, 10:33 PM
You can auto minimize all the DHTML windows when the page loads with something like the below function:


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

whazilla
02-27-2008, 11:50 PM
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