日期:2014-05-16 浏览次数:20305 次
function img_1(){ document.getElementById('msg').innerHTML =$("#msg").val()+ "<img src='<s:url value="/img/img/1.gif"/>'/>"; alert(document.getElementById('msg').innerHTML); hiddenDiv(); }
<img src='<s:url value="/img/img/1.gif"/>' onclick="img_1()"/>
<s:textarea name="chat.msg" cols="90" rows="7" id="msg"/>