| Autor | Zpráva | ||
|---|---|---|---|
| Alex-alex Profil * |
#1 · Zasláno: 14. 2. 2008, 19:22:19
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 * |
#2 · Zasláno: 14. 2. 2008, 19:24:13
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 |
#3 · Zasláno: 14. 2. 2008, 19:33:40
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 * |
#4 · Zasláno: 14. 2. 2008, 19:41:29
Děkuji, už to funguje.
|
||
| Alex-alex Profil * |
#5 · Zasláno: 14. 2. 2008, 19:49:38
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 * |
#6 · Zasláno: 14. 2. 2008, 19:51:21
|
||
|
Časová prodleva: 18 let
|
|||
0
. Nemohl by mi někdo poradit jak mám udělat, aby se ty okna zobrazovay horizontálně
???
