Autor Zpráva
Alex-alex
Profil *
Dobrý večer, potřebuju pomoc. Stáhnul jsem si script oken v prohlížeči (http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/), ale je tam nastaveno, aby se minimalizovaná okna zobrazovaly vertikálně . Nemohl by mi někdo poradit jak mám udělat, aby se ty okna zobrazovay horizontálně ???
t.style.left="10px"
t.style.width="200px"
var windowspacing=t.minimizeorder*10 //spacing (gap) between each minmized window(s)
t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.of fsetHeight*t.minimizeorder)-windowspacing+"px"
Alex-alex
Profil *
Zde je celý kód.
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.left="10px" //left coord of minmized window
	t.style.width="200px"
	var windowspacing=t.minimizeorder*10 //spacing (gap) between each minmized window(s)
	t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offsetHeight*t.minimizeorder)-windowspacing+"px"
}
DJ Miky
Profil
Jenom zkouším:

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.top="10px" //top coord of minmized window
	t.style.width="200px"
	var windowspacing=t.minimizeorder*10 //spacing (gap) between each minmized window(s)
	t.style.left=t.handle.offsetWidth*t.minimizeorder+windowspacing+"px"
}


Mělo by se to rovnat od levého okraje… Pokud by to mělo být od pravého, tak by mělo stačit v původním kódu nahradit všechny výskyty left za top a naopak, potom width za height a naopak.
Alex-alex
Profil *
Děkuji, už to funguje.
Alex-alex
Profil *
Tak to nejde, místo top jsem napsal bottom
	t.style.bottom="10px" //top coord of minmized window
	t.style.width="200px"
	var windowspacing=t.minimizeorder*10 //spacing (gap) between each minmized window(s)
	t.style.left=t.handle.offsetWidth*t.minimizeorder+windowspacing+"px"

a hle [img=http://img165.imageshack.us/img165/8983/beznzvuny5.jpg]
Alex-alex
Profil *

Vaše odpověď

Mohlo by se hodit

Neumíte-li správně určit příčinu chyby, vkládejte odkazy na živé ukázky.
Užíváte-li nějakou cizí knihovnu, ukažte odpovídajícím, kde jste ji vzali.

Užitečné odkazy:

Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0