Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
alswl committed Nov 7, 2011
2 parents 97e7841 + 2e878d9 commit bac67e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ <h1>jEmotion Demo</h1>
<div>a(#偷笑)(#怒)b(#左哼哼)(#泪)c(#左哼哼) [左边的文本将会被转换成表情]</div>
<textarea id="question" style="width:600px;height:180px;" placeholder="Write here"></textarea>
</br>
<a href="javascript:;" class="emotion">Add a emotion</a>
<span style="text-decoration:underline;cursor:pointer;" class="emotion">Add a emotion</span>
<span>(左边这个触发按钮如果使用 a 的话,会造成IE6截断http连接,不能正确读取Ajax图片,推荐使用span来模拟a)</span>
</br>
<input type="submit"/>

Expand Down
2 changes: 1 addition & 1 deletion jQuery.jEmotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var jEmotion = {
* 插入html到页面
*/
insertHtml: function(imagePath, smilesMaps) {
var html = '<style>#je_emotions{width:364px; position:absolute;border:1px solid #aaa;border-top:none;z-index:9999; text-align:center;padding:3px;padding-bottom:6px;background:#fff;} #je_emotions a img{float:left;cursor:pointer;margin:1px 1px; border:#cacaca 1px solid} #je_emotions a:hover img{border:1px solid #f51d69} </style>';
var html = '<style>#je_emotions{width:364px; position:absolute;border:1px solid #aaa;border-top:none;z-index:9999; text-align:center;padding:3px;padding-bottom:6px;background:#fff;} #je_emotions a img{float:left;cursor:pointer;margin:1px 1px; border:#cacaca 1px solid;visibility:visible;} #je_emotions a:hover img{border:1px solid #f51d69} </style>';
html += '<div id="je_emotions">';
for (i in smilesMaps) {
html += '<a href="javascript:;">' +
Expand Down

0 comments on commit bac67e8

Please sign in to comment.