12 февр. 2012 г.

Ինչպես տեղադրել սմայլիկներ Blogspot-ում:





Այսօր ես ձեզ կսովորեցնեմ թե ինչպես տեղադրել սմայլիկներ Blogspot-ում:


Քայլ 1-Ավելացնում ենք Css կոդը: Մուտք են գործում Blogger-ի կառավարման էջ և կատարում ենք այս քայլերը՝ Design > Edit Html կամ (Шаблон › Изменить HTML>Расширить шаблоны виджета):

Դրանից հետո գտնում ենք այս կոդը:


<h4 id='comment-post-message'><data:postCommentMsg/></h4>
</body>
<script type='text/javascript'>
//<![CDATA[ 
a = document.getElementById('comments'); 
if(a) { 
b = a.getElementsByTagName("DD"); 
for(i=0; i < b.length; i++) { 
if (b.item(i).getAttribute('CLASS') == 'Author-comment-body' , 'comment-body') { 
_str = b.item(i).innerHTML.replace(/:j/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhErIoliRJpSWbemVHg4b7flAVr_cV5YqYA2XDkh6pM_cC52XN_tlx_aHPWunONciU448b9xgpi844J5ZxiRQ1JX-mh24KohjY8sDKyce9UPm_PPtafGCeWbBPloMNSLq_WQFdZass5ipw/' alt='' class='smiley'/>"); 
_str = _str.replace(/:k/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHP1K9iUckO4nierhrZulwsnYlzweQrgTqd07hGdbwqTGM7gG_nEjNMmyuxeVDheMrgjHC1l9TWRzcc0bW4K8R9jrUy-pQiQsJ_sDavBbtYAT8_pG-52W3wwz2Mo7-Ivwa4SBGwURao_Q/' alt='' class='smiley'/>"); 
_str = _str.replace(/:l/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsAZtbUys7fnt6naGGncRnmv9DwTtKjptU35edk5zkO7UjPqHxZDL9lisKgcK4vxFCkNIojAPYpPwSeiYvMjYeEngGYX4nX_e8sC0H-KF3ovfL1GSUHdqK6TcH6Ihl4Z0Mr0M7XjvNbI4/' alt='' class='smiley'/>"); 
_str = _str.replace(/:m/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF-jzr8PMbjRo_jjUx6L9ZoXpN6-Uz2B6W5vb3OajHfgT1Vv7fFEpsrbFkcTbjFbva25UnqnU4UqfYqQO-AXA0y1yYYZeR-vpzvXBVSMnhF8O4ZysTwTmtwZNur_m_WSO7s-YTTiEg7P4/' alt='' class='smiley'/>"); 
_str = _str.replace(/:n/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOkMJh8NzzuNvB9U18Ogna-vq7Eyvgh1Nzn9JdLuMR8-rB8oxctg7ENFCCDnUPngmPSbFYmdVo1gMdK8H7esrxCYMLiS2Loh4H_4HVlRX5RdF1Z78XsGmOQ_wwa6Phs41J1A2CMJ8TzWM/' alt='' class='smiley'/>"); 
_str = _str.replace(/:o/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrBiErrKoT6rM4RCsFlWXMskxnbENZQtVlK3xexsi0C4mr8II6caEJD76m9sgTw7ovl9rfPoqSNj7HxQ5_46bhquVNsaMmrNucC4mqjMPZb__mV2dEVXSBk_6McYg2LPXw4C2w3CmMMKQ/' alt='' class='smiley'/>"); 
_str = _str.replace(/:p/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW94vfMF-Zdtw9vm0HLUrixLKFSTRoUKMCsQNII3Q5wCBMVla_4amZWR3T8UB6IyC5hDMEc3R03trxRgvB1S2fovOizEpl_5xTJj764dg9lxvas-nniiYO08NW8nX4RntiC5EZhQvY_qU/' alt='' class='smiley'/>"); 
_str = _str.replace(/:q/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8tPjcnCmZaGV8tANEP7WtpFjkf0GzEzm78uF8gZpsGeTc4gEiUVhTuHFHjnEtZmtSmpuU64tNXDdgywDB03YRxQdN7h6oaoUJV2WM_2lhPIDqHbJp6xQtFFhIr3ihl-RqhxsbFcluzc/' alt='' class='smiley'/>"); 
_str = _str.replace(/:r/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLqtVE2Zwd8kESEXgUe_pcy7F4YHqJbYlreo2Berk0rfRMTlTq1BI0LvKShRcXAXVpL7b-eoST3mwhxNzP0U_RpR3Rg6z19zHNMLfftGUxZXljr4vEQWj6eHhPV4ir4ND-wKhI8Ra15g0/' alt='' class='smiley'/>"); 
_str = _str.replace(/:s/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhmKShkM1UhcZtCfmyaXeMbILXRX46HRY6rXLOMn3762JamWf-t4KikVe6vy-YvaH2iUbOiFtYA1gJiktRhbR8YIKn6ORtjWRQqSXCyzqV_HdlvDPYn-cYYWuOZGsj1BmoBuByaxqz3lE/' alt='' class='smiley'/>"); 
_str = _str.replace(/:t/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVnl4h-J_8iV70dE7SvkZROXcN2uSA6X0HMnVb0wx3zKwXufk1yBFkxQUPSud4c0Rf6vHtcPgiG2LeP2aP8cWjPyWE27zUx_-FODqljPtAToUEUqu3jSWPdadYbsfZjiJuDQrCq56x1K4/' alt='' class='smiley'/>");
_str = _str.replace(/:a/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQMqOT4XEOV8WamRMqG6WFglRM814H7j9ZMqZwO0y0k-_fdqOcUpvBtydygvY7F1GC1OCeo_iZ6wFkLPHeSTpoddj0FZXE9ojuOGsbdILGsoVxEvTy4TgGDUzm7AF1ymYVVXkBah9bU8M/' alt='' class='smiley'/>"); 
_str = _str.replace(/:b/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgev-U3A6jMMDBnrrQPLC67IMHOitT18CxNrfNhyPGKMy-Yokrmx7cNtYm4HGWNmfdlP24XttuRp01LhT_NRP_eb678vSk-b1BCiyXB2fyJ8JOd_G8noP_4IAao2CZY8gO-zdC-Nh2TrcY/' alt='' class='smiley'/>"); 
_str = _str.replace(/:c/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW-eby8lEnyIEwKkDNPHUXdzMbWyRmUgnSXg1R93ECqbQDfdk-mF11EbDMKb5Wcy4gia-U8UsDiUv-R9dTupt83XlbyMIbfkvDgeYCAonJr_fSkYIoL3h2njI1IZouPu5QoVtbvGvqttU/' alt='' class='smiley'/>"); 
_str = _str.replace(/:d/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqqMlpsnQnuhVCXCUVysDuo5ejAHteYHX8kG_XexA2Q9I1AujetYMwlT40K0n4bzpbqmzaF8Yz5alxI_sx7geVopb0I_OQqzDEwdk6XoICruZpyfG5QEYB5Cks-uH-d0ngjnUQ56e5GeM/' alt='' class='smiley'/>"); 
_str = _str.replace(/:e/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-qxq7idjRTwFQi80LZE22cbdy4oHKaXeq6zNpyK48rh3gcZC7UxYIA9s_3yAfaI6VZQ9T21Orrm-5w02sG3VhKsmnxlCU486qm6HwL7a2MduZR-GdRHK8X134DNyqe9AH026IOKEC36I/' alt='' class='smiley'/>"); 
_str = _str.replace(/:f/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgkT7jmpQOe1FEfwg-IvPO4QUj-WSXQtrHDYeaVKxvv7ga6ZuQDy0LNlpNw2QyuFm0rGme8L8rip3ufirSMEd42QwWfgpiKHkCoWyQwxIyWupgYE0IZCGemGPksOuXMnhku4kyrJG70a4/' alt='' class='smiley'/>"); 
_str = _str.replace(/:g/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8pMoE6Rfp5e_ItTTSgbvijcep5Ibug4I-2HnD58WF9aRojHpMONz53ZtLNtWqfh2cxIztrADj5C8oOCXhbwh4Q_wCkwpN0gQ8YL9pHab0zdx9vmPHiBcMD6DkY4pbOVcMlzrIwR3w28/' alt='' class='smiley'/>"); 
_str = _str.replace(/:h/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRBpQEyyfKcMQoOOG74R0crNQkPaKilQbn6WAanE6js0n2a2CGrXaoioAHLr7a6vQmA5GuEKf-JdgDNuU1sRMV7W0UrzI3moJNqQPnJxK9GQw99QN4qZoy9kL9hiIdKfns4CdWB2JZWoI/' alt='' class='smiley'/>"); 
_str = _str.replace(/:i/ig,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJhmuHXs_ZSz-vyw4-JUzNy79OUb4p1_3tFNUVyjkZsrurzcNz0CJ5DXSWeVG4nem5R8L-vAHt9CMQDWY4wqCcxzrwuXdkUkYX4tPdvNalSHv0UqN-yAU_8kAesY4jW7HZGWhGqJrx3nQ/' alt='' class='smiley'/>") 
b.item(i).innerHTML = _str; 
} 
} 
}
//]]>
</script>
Եվ վերջում հիշեցնեմ այս ամենը անելուց առաջ կրկնօրինակում ենք բլոգը:

Комментариев нет:

Отправить комментарий

Edmon Nersisyan