Prote1n Posted May 11, 2012 Report Share Posted May 11, 2012 Как вставить код скрипта в шаблон сайта?<script type="text/javascript"> _shcp = []; _shcp.push({widget_id : 490228, widget : "Chat", side : "bottom", position : "right", template : "red", track : 1 }); (function() { var hcc = document.createElement("script"); hcc.type = "text/javascript"; hcc.async = true; hcc.src = ("https:" == document.location.protocol ? "https" : "http")+"://siteheart.com/apps/js/sh.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hcc, s.nextSibling); })(); </script>После вставки в файл index.tpl сайт не загружается, помогите. Quote Link to post Share on other sites
Prote1n Posted May 11, 2012 Author Report Share Posted May 11, 2012 Вырезало часть кода, это java script Quote Link to post Share on other sites
Prote1n Posted May 12, 2012 Author Report Share Posted May 12, 2012 Разобрался, нужно вставить в {literal} {/literal}. Quote Link to post Share on other sites
TitaNker Posted February 2, 2013 Report Share Posted February 2, 2013 чётка Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.