Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] wyswietlanie tekstu
lucks
post
Post #1





Grupa: Zarejestrowani
Postów: 143
Pomógł: 0
Dołączył: 5.04.2005

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


mam tką funkcję która mi dodaje rózne pola do formularza

  1. function AddFile() {
  2. var diw = document.getElementById('diw');
  3. var file = document.createElement('input');
  4. var opis = document.createElement('input');
  5.  
  6. file.type="file";
  7. file.name='file_'+inums;
  8. opis.type="text"
  9. opis.name='opis_'+inums;
  10. inums++;
  11. document.getElementById("inums").value = inums;
  12. var br = document.createElement("br");
  13. diw.appendChild(br);
  14. diw.appendChild(file);
  15. diw.appendChild(opis);
  16. }


chodzi mi o to zeby wyswietlić jakiś tekst lub ustawić jakąś spacje by oddzielić elementy w kazdym wierszu przed polem tekstowym, np."Opis:" lub " "
kobinowałem z write i z innerhtml ale nie udało mi sie uzyskać zadowalającego efektu
Go to the top of the page
+Quote Post

Posty w temacie
- lucks   [js] wyswietlanie tekstu   15.09.2006, 09:13:27
- - Jim   [HTML] pobierz, plaintext text = document.createTe...   15.09.2006, 15:40:27


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

 



RSS Aktualny czas: 21.08.2025 - 13:09