对聊天室外观和功能进行大改,添加使用表情包功能

This commit is contained in:
FJY
2017-11-19 22:58:26 +08:00
parent 6551c61a0b
commit 5e87ddf1ba
62 changed files with 349 additions and 167 deletions

View File

@@ -28,6 +28,20 @@
strFace += '<td><img src="'+path+i+'.gif" onclick="$(\'#'+option.assign+'\').setCaret();$(\'#'+option.assign+'\').insertAtCaret(\'' + labFace + '\');" /></td>';
if( i % 15 == 0 ) strFace += '</tr><tr>';
}
strFace += '</tr></table>';
strFace +='<table border="0" cellspacing="0" cellpadding="0"><tr>';
for(var i=76; i<=87; i++){
labFace ="<image src=arclist/"+i+".gif>";
strFace += '<td height="25" width="25"><img src="'+path+i+'.gif" onclick="$(\'#'+option.assign+'\').setCaret();$(\'#'+option.assign+'\').insertAtCaret(\'' + labFace + '\');" /></td>';
if( (i-75) % 6 == 0 ) strFace += '</tr><tr>';
}
strFace += '</tr></table>';
strFace +='<table border="0" cellspacing="0" cellpadding="0"><tr>';
for(var i=88; i<=118; i++){
labFace ="<image src=arclist/"+i+".gif>";
strFace += '<td><img src="'+path+i+'.gif" onclick="$(\'#'+option.assign+'\').setCaret();$(\'#'+option.assign+'\').insertAtCaret(\'' + labFace + '\');" /></td>';
if( i % 3 == 0 ) strFace += '</tr><tr>';
}
strFace += '</tr></table></div>';
}
$(this).parent().append(strFace);