Dream Posted August 3, 2005 Report Share Posted August 3, 2005 (edited) Veeleejos uzzinat , kaa ar javascript paliidziibu var smailiju ievietot textarea ... No javascript neko dadudz nesaprotu , tapeec luudzu paskaidrojies vismaz virspuseeji kur ko kaa vaig ielikt... paldies... Ups atvainojos, par to ka netajaa sadaljaa ieliku... Edited August 3, 2005 by Dream Link to comment Share on other sites More sharing options...
Dream Posted August 3, 2005 Author Report Share Posted August 3, 2005 Paldies bet es te pavazaajos un atradu dazhas pamaaciibas... ielikshu te, ja kaadam noder... <script> function sendText(e, text) { e.value += text } </script> un te buus paraudzinsh <form name="testform" method="POST"> <p align="center"><textarea rows="2" name="title" cols="20">click the button</textarea><br> <a onClick="sendText(document.testform.title, ':)')"><IMG SRC="../New_Web/icons/edit_news.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT=""></a></td> <input type="button" onClick="sendText(document.testform.title, ':)')" value=":)" name="smile"><br> <input type="submit" value="Submit" name="B1"></p> </form> Link to comment Share on other sites More sharing options...
Analgiins Posted August 4, 2005 Report Share Posted August 4, 2005 (edited) Spēcīgs skripts :) Edited August 4, 2005 by Analgiins Link to comment Share on other sites More sharing options...
MASTERS922 Posted August 23, 2005 Report Share Posted August 23, 2005 es šitā darītu $SmiliesTbl = Array( ":\)" => array("smile1.gif", "15", "15"), ":D" => array("smile2.gif", "15", "15"), ":o" => array("smile3.gif", "15", "15"), ":\(" => array("smile4.gif", "15", "15"), ";\)" => array("smile5.gif", "15", "15"), ":p" => array("smile6.gif", "15", "15"), "8\)" => array("smile7.gif", "15", "15"), ":\[" => array("smile8.gif", "15", "15"), ":kill:" => array("smile9.gif", "50", "15") ); Link to comment Share on other sites More sharing options...
Kavacky Posted August 23, 2005 Report Share Posted August 23, 2005 Viņam vajadzēja to, lai pievieno teksta galā smailija kodu... Link to comment Share on other sites More sharing options...
bubu Posted August 23, 2005 Report Share Posted August 23, 2005 MASTERS922, tavs kods kautkā neatgādina Javaskriptu. Link to comment Share on other sites More sharing options...
Robis Posted August 23, 2005 Report Share Posted August 23, 2005 Hmm... Nesaprotu, kāpēc neizmantot gatavas iestrādnes, piemēram TinyMCE. Kamēr pats iemācīsies uztaisīt tādu textarea, pienāks jauna ēra... (spriežot pēc jautājuma) :) Link to comment Share on other sites More sharing options...
Klez Posted August 24, 2005 Report Share Posted August 24, 2005 Hmm... Nesaprotu, kāpēc neizmantot gatavas iestrādnes, piemēram TinyMCE. Kamēr pats iemācīsies uztaisīt tādu textarea, pienāks jauna ēra... (spriežot pēc jautājuma) :) 21377[/snapback] Robis , ne visi straadaa peec principa CTRL + C un CTRL + V .... Link to comment Share on other sites More sharing options...
Robis Posted August 24, 2005 Report Share Posted August 24, 2005 Klez atvaino, bet vai lasīji šo? Veeleejos uzzinat , kaa ar javascript paliidziibu var smailiju ievietot textarea ... No javascript neko dadudz nesaprotu , tapeec luudzu paskaidrojies vismaz virspuseeji kur ko kaa vaig ielikt... paldies... No Javascript neko daudz nesaprotu - lai uztaisītu advancētu textarea, no javascript ir jāsaprot diezgan daudz, tāpēc saku, lai cilvēks velti netērē pusgadu un paņem jau gatavu. Link to comment Share on other sites More sharing options...
Klez Posted August 24, 2005 Report Share Posted August 24, 2005 kur teikts ka vinjam vaig textarea no javaskripta ???? Veeleejos uzzinat , kaa ar javascript paliidziibu var smailiju ievietot textarea tas manupraat ir taa kad es uzklikshinu un slailinja un javaskripts textare lauka ieliek kaut kaadu tekstu. ne taa ?? Robis man liekas ka paarprata B) un tas lai ar JS iedabuutu textarea kaadu teksta gabalu, nau nemaz tik gari. kaadas 3 - 5 rindinjas. protams jautaajums cik advenceec, tas ir pa visam kas cic! Link to comment Share on other sites More sharing options...
eglitis Posted August 24, 2005 Report Share Posted August 24, 2005 Vēl jau ir slavenie BBkodi. Var nelikt smailijus, bet kodus un vēlāk transformēt kā vien ienāk prātā. Ļoti ērts paņēmiens, ja vēlāk viss jārāda arī WAP, piemēram. Link to comment Share on other sites More sharing options...
Kavacky Posted August 24, 2005 Report Share Posted August 24, 2005 BB kods ir "[b][/b]", bet smailijs - ":)". Link to comment Share on other sites More sharing options...
Robis Posted August 24, 2005 Report Share Posted August 24, 2005 Tieši tā!!! BB kods ir domāts lai izvairītos no HTML, bet smailijs - tas ir smailijs - re: :) :angry: :lol: :huh: :blink: :D <_< :( :P :rolleyes: :ph34r: :o :unsure: ;) B) :lol: Labi, puikas, cīnās - kādreiz jau ritenis ar jāizgudro pa jaunu ;) Link to comment Share on other sites More sharing options...
Recommended Posts