Smiley

poruka: 6
|
čitano: 2.289
|
moderatori: Lazarus Long, XXX-Man, vincimus
1
+/- sve poruke
ravni prikaz
starije poruke gore
16 godina
neaktivan
offline
Smiley

Koristim ovu funkciju za stavljanje smiley-a u textbox:
 
function writeImgTag(code) {  
this.code = code;
document.txtPoruka.value = "<img src='../smileys/" + code + ".gif'>";
document.txtPoruka.focus();
}

 

Ovdje pozivam funkciju :

 

<img alt = "" onclick="writeImgTag('hahaha')" src="../smileys/hahaha.gif" border="0" height="22" width="22" />

 

Međutim. dobivam error poruku:

 

document.txtPoruka is null or not an object

 

Zašto?

 
0 0 hvala 0
16 godina
neaktivan
offline
RE: Smiley

Probaj koristiti document.getElementById("ime_elementa") ili document.getElementByName("ime_elementa")

There's too many self-Indulgent wieners in this city with too much bloody money! ----- HP 6715b: Turion X2 64bit, 3 GB DDR2 667Mhz, 120GB SATA disk, X1250 graphics chip, Ubuntu 8.10 I ja ću si kao i naxeem stavit neku sexy tetu na avatar. Aha!
16 godina
neaktivan
offline
RE: Smiley
Hrcko kaže...

Koristim ovu funkciju za stavljanje smiley-a u textbox:
 
function writeImgTag(code) {  
this.code = code;
document.txtPoruka.value = "<img src='../smileys/" + code + ".gif'>";
document.txtPoruka.focus();
}

 A šta ti je ovaj red ovdje? Što on radi?

this.code = code;


EDIT: Moderi i admini, sorry na duplom postu...  nije namjerno...
There's too many self-Indulgent wieners in this city with too much bloody money! ----- HP 6715b: Turion X2 64bit, 3 GB DDR2 667Mhz, 120GB SATA disk, X1250 graphics chip, Ubuntu 8.10 I ja ću si kao i naxeem stavit neku sexy tetu na avatar. Aha!
Poruka je uređivana zadnji put pon 23.2.2009 12:45 (coder_).
15 godina
neaktivan
offline
RE: Smiley
coder_ kaže...
 A šta ti je ovaj red ovdje? Što on radi?

this.code = code;



 function writeImgTag(code) {  
this.code = code;
document.txtPoruka.value = "<img src='../smileys/" + code + ".gif'>";
document.txtPoruka.focus();
}

 

Ovdje pozivam funkciju :

 

<img alt = "" onclick="writeImgTag('hahaha')" src="../smileys/hahaha.gif" border="0" height="22" width="22" />

 

Commodore 64 , 0.985MHz , 64Kb RAM, VIC II 6567/8567(PAL)
16 godina
neaktivan
offline
RE: Smiley
mtopol kaže...
 function writeImgTag(code) {  
this.code = code;
document.txtPoruka.value = "<img src='../smileys/" + code + ".gif'>";
document.txtPoruka.focus();
}

 

Ovdje pozivam funkciju :

 

<img alt = "" onclick="writeImgTag('hahaha')" src="../smileys/hahaha.gif" border="0" height="22" width="22" />

 

 Ma ok to. Samo vidim da ti je taj red nepotreban. I radit će i bez tog reda.
There's too many self-Indulgent wieners in this city with too much bloody money! ----- HP 6715b: Turion X2 64bit, 3 GB DDR2 667Mhz, 120GB SATA disk, X1250 graphics chip, Ubuntu 8.10 I ja ću si kao i naxeem stavit neku sexy tetu na avatar. Aha!
15 godina
neaktivan
offline
RE: Smiley
coder_ kaže...
mtopol kaže...
 function writeImgTag(code) {  
this.code = code;
document.txtPoruka.value = "<img src='../smileys/" + code + ".gif'>";
document.txtPoruka.focus();
}

 

Ovdje pozivam funkciju :

 

<img alt = "" onclick="writeImgTag('hahaha')" src="../smileys/hahaha.gif" border="0" height="22" width="22" />

 

 Ma ok to. Samo vidim da ti je taj red nepotreban. I radit će i bez tog reda.
 istina
Commodore 64 , 0.985MHz , 64Kb RAM, VIC II 6567/8567(PAL)
1
Nova poruka
E-mail:
Lozinka:
 
vrh stranice