Jump to content

[Фича] Смайлы в текстовом поле как в Вконтакте


Recommended Posts

Автор: viiprogramer


Открыть /templates/Default/im/form.tpl

Найти:

<textarea
class="videos_input wysiwyg_inpt fl_l im_msg_texta"
id="msg_text"
style="height:40px"
placeholder="Введите Ваше сообщение.."
onKeyPress="if(event.keyCode == 10 || (event.keyCode == 13)) im.send('{for_user_id}', '{my-name}', '{my-ava}')"
onKeyUp="im.typograf()"
></textarea>

И после вставить:
 

<div id="im_smile" class="fl_l" onclick="wall.attach_addsmile()" style="opacity: 0.7; ">
<div class="im_smile_icon_on"></div></div>

Дальше открыть /templates/Default/style/style.css

Найти :

/* IM */

И сразу после вставить:

 

.im_smile_icon_on {
   margin-left: 490px;
   margin-top: -45px;
   width: 24px;
   height: 24px;
   background: url('http://st0.vk.me/images/im_smile_cross.png?3') 0px -24px no-repeat;
   -webkit-transform: rotate(0deg);-o-transform: rotate(0deg);transform: rotate(0deg);
}


PROFIT!

IM.PNG

  • Like 1
  • Upvote 2
Link to comment
Share on other sites

  • 8 months later...
  • 4 weeks later...
  • 4 weeks later...
  • 3 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...