Jestli tedy mohu predkladam cely kod a jde mi o zapis scrollbaru. Dekuji Simon var MyCookie = { Write:function(name,value,days) { var D = new Date(); D.setTime(D.getTime()+86400000*days) document.cookie = escape(name)+"="+escape(value)+ ((days == null)?"":(";expires="+D.toGMTString())) return (this.Read(name) == value); }, Read:function(name) { var EN=escape(name) var F=' '+document.cookie+';', S=F.indexOf(' '+EN); return S==-1 ? null : unescape( F.substring(EN=S+EN.length+2,F.indexOf(';',EN)) ); } } // Parametry var iHeight = 400; // vyska okna var iWidth = 600; // sirka okna var iscrollbars= yes; // a tady nevim jak to zapsat function Reposition() { var x,y; var pos = MyCookie.Read("newspos"); pos = pos== null ? "" : pos; switch(pos) { case "ldn": x=iXoff; y=parseInt(screen.height)-iY2off-iHeight; break; case "rdn": x=parseInt(screen.width)-iX2off-iWidth; y=parseInt(screen.height)-iY2off-iHeight; break; case "rup": x=parseInt(screen.width)-iX2off-iWidth; y=iYoff; break; case "lup": case "": x=iXoff; y=iYoff; break; } self.moveTo(x,y); } function Position(thePos) { MyCookie.Write("newspos",thePos,365); Reposition(); } function DisableNewswin() { MyCookie.Write('newsdisabled','yes',365); window.close(); } function EnableNewswin() { MyCookie.Write('newsdisabled','',365) OpenNewswin(true); } function OpenNewswin(fForceOpen) { if(MyCookie.Read("newsdisabled")!="yes") { if( (MyCookie.Read("newstoday")!="yes") || (fForceOpen) ) { window.open( "info_offline.htm", "PopupNews", "location=no,status=no,toolbar=no,menubar=no,width="+iWidth+",height="+iHeig ht) MyCookie.Write('newstoday','yes',1); } } } ----- Original Message ----- From: "hynek.lipa" <hynek.lipa@worldonline.cz> To: <zacatecnici-internet@nawebu.cz> Sent: Monday, August 18, 2003 8:11 AM Subject: Re: parametry pop - up okna > Simon wrote: > > Zdravim vsechny. > > Muzete mi poradit se zapisem parametru pop-up okna . Jde mi hlavne o > > zobrazeni scrollu zatim mam takovy zapis: > > // Parametry > > var iHeight = 400; // sirka okna > > var iWidth = 600; // vyska okna > > var iscrollbars= yes; > > a takto scroll nefunguje. Prosim o radu jak to zapsat, pokud to jde. > ----------------------------------------- > to je zase otazka, jako: "nevite co mam ve druhem supliku na leve > strane stolu?" :((( > > pokud neposles cely kod, tak Ti nikdo nemuze poradit. a nevim, co to > je za prasecinu, ze se definuji parametry posuvniku mimo (i kdyz proc > ne). > > tak a jdem resit: hledej v tom kodu co s neposlal zhruba toto: > window.open('bla','bla','bla, scrollbars='+iscrollbars+', bla'); > > muze to vypadat jinak, misto *bla* bude neco jineho, ale musi tam > byt to s tim scrollbars. a uvozovky muzou byt double quotes (dvojite) > > enjoy :) > > - h! - > http://hyneklipa.cz/ > > > > ===================================================== reklama ===== > Audit webhostingovych sluzeb - wAudit: http://www.lupa.cz/waudit/ > Vyberte si nejkvalitnejsi webhosting on-line. > =================================================================== > > -- > -- Konference: ZACATECNICI - Pravidla: http://pravidla.kab.cz/ -- > -- Archiv, instrukce pro odhlaseni: http://internet.nawebu.cz/ -- > -- Konference Internet Info, s.r.o. ----- http://www.iinfo.cz/ -- > >
This archive was generated by hypermail 2.1.3 : 18. 08. 2003, 09:58 CEST