Някой може ли да направи тези кодове да стане така значи вътре има емотикони както тука като натиснеш Виж емотиконите и излиза прозорче искаме като натисне емотиконата от прозореца да се пише в textareata при нас не излиза ето и кода
долния код е form2.html
Код:
<script type="text/javascript">
function modify(th, modsrc) {
if (!window.focus) return false;
window.open("", modsrc, "width=500,height=300,left=200,top=100,scrollbars=yes,");
th.target=modsrc;
return true;
}
function $(div) {
return document.getElementById(div);
}
function addEmotion(emotion, field, prof_message) {
clearTextarea($(field), prof_message);
$(field).value = $(field).value+emotion;
}
function clearTextarea(textarea, escape) {
if(textarea.value == escape)
textarea.value = '';
}
</script>
<form method="POST">
<div id="smiles_cont" class="emots">
<a href="javascript: void(0)" onclick="addEmotion('(wink)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/wink.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(verrhapp)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/very_happy.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(tongue)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/tongue.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(rock)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/rocknroll.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(surprised)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/surprised.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(sleep)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/sleep.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(sad)', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/sad.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':rose:', 'comment', 'Напиши ми нещо...');" title=""><img src="images/smiles/rose.gif" alt="" title="" border="0"></a>
<a class="more_emoticons" href=form2.html onclick=modify(this,'join') title="още емотиконки...">още емотиконки...</a>
</div>
<textarea name="opis" id="comment" rows="4" cols="25"></textarea>
</form>
долния код е form2.html
Код:
<div id="more_emoticons_panel">
<a href="javascript: void(0)" onclick="addEmotion('(thank)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/thankyou.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(pumkin)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/pumpkin.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(pig)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/pig.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(nono)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/nono.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(naughty)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/naughty.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(monkey)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/monkey.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(mad)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/mad.gif" alt="" title="" border="0"></a>
<br>
<a href="javascript: void(0)" onclick="addEmotion('(lovers)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/lovers.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(laugh)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/laugh.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(kissing)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/kissing.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':kissing:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/kissing2.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':kiss:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/kiss.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(inlove)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/in_love.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(thumbsup)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_thumbsup.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(thumbsdown)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_thumbsdown.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(shit)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_shit.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':love:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_love.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(hump)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_hump.gif" alt="" title="" border="0"></a>
<br>
<a href="javascript: void(0)" onclick="addEmotion(':app:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/applause.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':apr:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/april.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':devil:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/aq.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':sleep:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/asleep.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':beat:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/beat_up.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':bigsmile:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/big_smile.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':bulb:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/bulb.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':chair:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/chair.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':cm:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/cm.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':hbd:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_hbd.gif" alt="" title="" border="0"></a>
<br>
<a href="javascript: void(0)" onclick="addEmotion(':cq:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/cq.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':cry:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/cry1.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':ct:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/ct.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':cy:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/cy.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':dancing:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/dancing.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':doh:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/doh.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':flirt:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/flirt.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':happy:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/happy.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion(':hiro:', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/hiro.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(happy)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/icon_happy2.gif" alt="" title="" border="0"></a>
<a href="javascript: void(0)" onclick="addEmotion('(love)', 'comment', 'Напиши ми нещо...'); hideObj('more_emoticons_panel');" title=""><img src="images/smiles/huglove.gif" alt="" title="" border="0"></a>
</div>