KillerBean Posted March 29, 2006 Report Share Posted March 29, 2006 (edited) kaa piem shim kodam var pievienot, lai tas atveertajam logam, kas atveraas >> finestra=window.open(img,"",stringa); << buutu onClick - window.close()? function viewFoto(img){ largh=foto1.width+20; altez=foto1.height+20; stringa="width="+largh+",height="+altez; finestra=window.open(img,"",stringa); } nu oki... izlabotas pareizraxtiibas kljuudas! ;D Edited March 29, 2006 by KillerBean Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 29, 2006 Report Share Posted March 29, 2006 kas ir clode()? Link to comment Share on other sites More sharing options...
Guest Zandis Posted March 29, 2006 Report Share Posted March 29, 2006 Kas neredzi, ka cilvēks sajaucis un uzrakstījis "Close" vietā "Clode"? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 29, 2006 Report Share Posted March 29, 2006 Zandis --> redzu :D bet prieks tam ir poga edit. un ja kaadam luudz paliidziibu tad arii kodu vajag palabot taa lai nav jaamin kas tie par mainiigajiem... un jamezgjii smadzenes lasot... Link to comment Share on other sites More sharing options...
Guest Zandis Posted March 29, 2006 Report Share Posted March 29, 2006 A tu domā viņš pārlasa vai arī lasa līdzi rakstot? Hah! Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 29, 2006 Report Share Posted March 29, 2006 (edited) Zandis--> nu ja ir necienja pret paareejiem foruma lietotaajiem tad... Kaada jeega tad atbildeet? Es gan parasti paarlasu (nu visiem jau gadaas drukas kljuudas) un ja pats iisti nesaprotu tad izlaboju un ja nepiecieshams papildinu P.S. Viss beidzam. savaadaak panesaas Oftopiks..... edit: KillerBean --> sory. Taada diivaina diena shodien... ja no taas pashas lapas no kuras atveeri tad (ar parbaudi): function aizveert() { if (!atvertaa_loga_vards) { alert ('Logs nav atveerts'); } else if (atvertaa_loga_vards.closed) { alert ('Logs jau ir aizveerts'); } else { atvertaa_loga_vards.close(); } } Ja gribi lai taa f-ja close() izpildaas no pop-upa tad vari pamekleet kaa ar JS mainiit HTML kodu Write, WriteLine ... un atvertaa_loga_vards.WriteLine...... tavs jaunais kods (skjiet ka shaadi) Edited March 29, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
KillerBean Posted March 29, 2006 Author Report Share Posted March 29, 2006 Nu reaali tur ir taa ka popup'aa izlec bildes/bilde1.jpg nevis atveras lapa kuraa ir ielikta bilde1.jpg ar <img>, ja buutu taa tad bodyam vareetu <a> tagaa noraadiit. a ar taadu kodu reaali var noraadiit JS lai atverot pop-up vinjam buutu uz klikshkja - window.close()?? PS.: sorry... pasham JS bish patumsha bilde. :\ Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 29, 2006 Report Share Posted March 29, 2006 (edited) KillerBean--> a kamdeelj negribi dariit tieshi taa ka atveras lapa kuraa jau viss ir paredzeets? njus... es jau teicu paliek vel iespeeja to HTML kodu formeet ar JS... tik, manupraat tas nav iipashi labi + pagruuti kontroleet... (iznaak kautkaa caur '@(*$' 'aizmuguri' ) manupaat var tachu: atveert pop-up kursh jau satur gatavu HTML+ar PHP izsaukt vajadziigo bildi.. ieguvums: var viegli mainiit stilu, iespeeja piesleegt DB un izmantot bilzju parakstus utt... P.S. ja vajag lai tikai var aizveert logu tad var pavisam elementaari logam atljaut augseejo 'baaru'... kur ir ispeeja arii samazinaat+ colseed... edit: meklee turpat pie win.open..... f-jas... Edited March 29, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
Stopp Posted March 29, 2006 Report Share Posted March 29, 2006 atver kaukādu php failu, piem img popup, tad nobloķē adrešbārus u.c. liekumus, tad bija tāds atribūts 'vspace' ja nemaldos... Link to comment Share on other sites More sharing options...
KillerBean Posted March 29, 2006 Author Report Share Posted March 29, 2006 nu vnk kods ir jau uzraxtiic taa ka uz linka pop-upaa atver bildi pa taisno. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 29, 2006 Report Share Posted March 29, 2006 Stopp--> skjit ka 'Auzas'... ta neko ... es jau uzrakstiju kur rakt... ir iepeejams POp-up logam pastaastiit kaads nu buus HTML atraadaams.... Write... f-ja .... , bet ja kods ir gatavs... un 'Praktiski nekas nav mainaams'.. tad .... 'Vashi problemi Senjorita'... Link to comment Share on other sites More sharing options...
Recommended Posts