![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 426 Pomógł: 1 Dołączył: 2.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 16 Pomógł: 0 Dołączył: 11.12.2003 Skąd: Rybnik Ostrzeżenie: (0%) ![]() ![]() |
dzieki wielkie... meczylem, meczylem i udalo mi sie przerobic na cos takiego
Cytat <script language="javascript"> var b = 2; function tag(v, tagopen, newbut, tagclose, oldbut, name, field) { if(eval(v)%2 == 0){ eval("window.document.editform."+name+".value = newbut;"); var windows = window.document.editform.field.value; var tresc = eval("window.document.editform."+windows+".value;"); eval("window.document.editform."+windows+".value = window.document.editform."+windows+".value + tagopen;"); eval("window.document.editform."+windows+".focus();"); }else{ eval("window.document.editform."+name+".value = oldbut;"); var windows = window.document.editform.field.value; eval("window.document.editform."+windows+".value = window.document.editform."+windows+".value + tagclose;"); eval("window.document.editform."+windows+".focus();"); } eval(v+"++;"); } </script> <form action="" method="post" name="editform"> <input type="hidden" id="field"> <textarea id="post1" onclick="document.editform.field.value = this.id">tresc post1</textarea><br><br> <textarea id="post2" onclick="document.editform.field.value = this.id">tresc post2</textarea><br><br> <textarea id="post3" onclick="document.editform.field.value = this.id">tresc post3</textarea><br><br> <input type="button" value="B" name="b" onclick="java script:tag('b','', 'B*', '', 'B', 'b', 'document.editform.field.value');" > <input type="submit"> </form> ... pewnie sie da to jakos zoptymalizowac, no ale nie za bardzo umie js (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ten post edytował ali 21.04.2006, 15:53:29 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 19:15 |