Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dwa pola textarea z mozliwością bbode
krzyszbi
post
Post #1





Grupa: Zarejestrowani
Postów: 251
Pomógł: 13
Dołączył: 15.09.2005

Ostrzeżenie: (0%)
-----


witam
miom zdaniem to powinno być tutaj i dlatego to tu dałem ( jak cos to proszę o poprawkę )
a teraz mój problem
wiem jak zrobic możliwośc stosowanie bbCode do jednego pola textarea a teraz chciałbym móc na jednej stronie miec możliwośc formatowania przez właśnnie bbCode dwóch takich pól ni kompletnie nie wiem jak to zrobić ( JavaScript u mnie totalenie leży ) więc prosze was o pomoć
z góry dzięki za wskazówki i/lub jakiś działający kod (niekoniecznie)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
krzyszbi
post
Post #2





Grupa: Zarejestrowani
Postów: 251
Pomógł: 13
Dołączył: 15.09.2005

Ostrzeżenie: (0%)
-----


było ale dla jednego pola ( przynajmniej ja nie znalazłem coś adekwatnego do mojej sytuacji )
narazie mam coś takiego
  1. <tr><td class="kom_12">Tytuł:</td><td align="center"><textarea class="form_pytanie1" name="message_tyt" rows="2" cols="40"></textarea>
  2. <br />
  3. <tr>
  4. <td><input class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight: bold; width: 50px;" onclick="bbstyle(0)" type="button"></td>
  5. <td><input class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style: italic; width: 50px;" onclick="bbstyle(2)" type="button"></td>
  6. <td><input class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 50px;" onclick="bbstyle(4)" type="button"></td>
  7. <td><input class="button" accesskey="l" name="addbbcode6" value="Wypunktowanie" style="width: 120px;" onclick="bbstyle(6)" type="button"></td>
  8. <td><input class="button" accesskey="o" name="addbbcode8" value="Punktowanie" style="width: 100px;" onclick="bbstyle(8)" type="button"></td>
  9. <td><input class="button" accesskey="c" name="addbbcode10" value="color" style="color: #BB0000; width: 50px;" onclick="bbstyle(10)" type="button"></td>
  10. <td><input class="button" accesskey="z" name="addbbcode12" value="color" style="color: #007717; width: 50px;" onclick="bbstyle(12)" type="button"></td>
  11. <td><input class="button" accesskey="n" name="addbbcode14" value="color" style="color: #014E98; width: 50px;" onclick="bbstyle(14)" type="button"></td>
  12. <td><input class="button" accesskey="l" name="addbbcode16" value="color" style="color: #EEEE00; width: 50px;" onclick="bbstyle(16)" type="button"></td>
  13. </tr>
  14. </table>
  15. </td></tr>
  16. <tr><td class="kom_12">Treść infornacji:</td><td align="center"><textarea class="form_pytanie1" name="message" rows="2" cols="40"></textarea>
  17. <br />
  18. <tr>
  19. <td><input class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight: bold; width: 50px;" onclick="bbstyle(0)" type="button"></td>
  20. <td><input class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style: italic; width: 50px;" onclick="bbstyle(2)" type="button"></td>
  21. <td><input class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 50px;" onclick="bbstyle(4)" type="button"></td>
  22. <td><input class="button" accesskey="l" name="addbbcode6" value="Wypunktowanie" style="width: 120px;" onclick="bbstyle(6)" type="button"></td>
  23. <td><input class="button" accesskey="o" name="addbbcode8" value="Punktowanie" style="width: 100px;" onclick="bbstyle(8)" type="button"></td>
  24. <td><input class="button" accesskey="c" name="addbbcode10" value="color" style="color: #BB0000; width: 50px;" onclick="bbstyle(10)" type="button"></td>
  25. <td><input class="button" accesskey="z" name="addbbcode12" value="color" style="color: #007717; width: 50px;" onclick="bbstyle(12)" type="button"></td>
  26. <td><input class="button" accesskey="n" name="addbbcode14" value="color" style="color: #014E98; width: 50px;" onclick="bbstyle(14)" type="button"></td>
  27. <td><input class="button" accesskey="l" name="addbbcode16" value="color" style="color: #EEEE00; width: 50px;" onclick="bbstyle(16)" type="button"></td>
  28. </tr>
  29. </table>
  30. </td></tr>

ni i właśnie dla textarea o nazwie messege to działa ale juz dla pola messege_tyt ja juz nie wiem co przerobić
moża macie jakieś pomysły
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 11:07