ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 7156


Ignore:
Timestamp:
May 12, 2008, 8:55:18 PM (11 years ago)
Author:
ebihara
Message:

#2320:挿入される絵文字が常に最後のものになっていたのを修正

Location:
OpenPNE/trunk/public_html/js/pc_emoji_palet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/js/pc_emoji_palet/pc_emoji_palet.js

    r7145 r7156  
    77{document.write('<div id="epSb" style="display:none"></div>');}
    88function renderEmojiPallet(carrier)
    9 {var doc=document;var pl=palletList[carrier];var emoji_set=pl.emoji;Element.addClassName(pl.id,"isLoadEmojiImage");for(var num in emoji_set){var emoji=emoji_set[num];var emoji_end=emoji.end;for(var i=emoji.start;i<=emoji_end;i++){var src="./skin/default/img/emoji/"+pl.shortname+"/"+pl.shortname+i+".gif";var alt="["+pl.shortname+":"+i+"]";var div=doc.getElementById(pl.id);var img=doc.createElement("img");img.setAttribute("src",src);img.setAttribute("alt",alt);img.onclick=function(){putEmojiToSelf(alt)};div.appendChild(img);}}
     9{var doc=document;var pl=palletList[carrier];var emoji_set=pl.emoji;Element.addClassName(pl.id,"isLoadEmojiImage");for(var num in emoji_set){var emoji=emoji_set[num];var emoji_end=emoji.end;for(var i=emoji.start;i<=emoji_end;i++){var src="./skin/default/img/emoji/"+pl.shortname+"/"+pl.shortname+i+".gif";var alt="["+pl.shortname+":"+i+"]";var div=doc.getElementById(pl.id);var img=doc.createElement("img");img.setAttribute("src",src);img.setAttribute("alt",alt);img.onclick=function(){var emoji_code=this.getAttribute("alt");putEmojiToSelf(emoji_code);};div.appendChild(img);}}
    1010Element.removeClassName(pl.id,"processLoadEmojiImage");}
    1111function output(){document.write('<div id="emoji_pallet" class="padding_ss" style="width:439px;">');if(selfPallet){document.write('絵文字入力 ');document.write('<a href="#" onclick=\'togglePallet("epDocomo"); return false;\'>DoCoMo</a>');if(useAu)document.write(' <a href="#" onclick=\'togglePallet("epAu"); return false;\'>AU</a>');if(useSb)document.write(' <a href="#" onclick=\'togglePallet("epSb"); return false;\'>SoftBank</a>');createEmojiPalletDoCoMo();if(useAu){createEmojiPalletAu();}
  • OpenPNE/trunk/public_html/js/pc_emoji_palet/pc_emoji_palet.js.src

    r7145 r7156  
    8282            img.setAttribute("src", src);
    8383            img.setAttribute("alt", alt);
    84             img.onclick = function () { putEmojiToSelf(alt) };
     84            img.onclick = function () {
     85                var emoji_code = this.getAttribute("alt");
     86                putEmojiToSelf(emoji_code);
     87            };
    8588
    8689            div.appendChild(img);
Note: See TracChangeset for help on using the changeset viewer.