Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 54 Pomógł: 0 Dołączył: 26.10.2008 Ostrzeżenie: (0%)
|
Witam wszystkich !
Link się wstawia w textarea, ale gdy chcę wstawić drugi link skrypt kasuje całą zawartość textarea i nie wiem jak sobie z tym poradzić - proszę o pomoc. Oto skrypt: Kod function Insert()
{ var prefix = document.getElementById('prefix').value; var target = document.getElementById('target').value; var url = document.getElementById('url').value; var name = document.getElementById('name').value; if(url.length > '0' && name.length > '0') { var link = '<a href='+prefix+''+url+' target='+target+'>'+''+name+'</a>'; window.opener.form.text.value = link; window.close(); window.opener.form.text.focus(); } } </script> |
|
|
|
Gibcio2008 Prosty edytor 23.02.2009, 13:31:33
23kulpamens Nie jestem pewien, nie wiem nawet jakie ID ma text... 24.02.2009, 20:10:26 ![]() ![]() |
|
Aktualny czas: 24.12.2025 - 20:37 |