Re: Виджет комментариев ВКонтакте
Добавлено: 12 сен 2010, 16:32
daniska
Что именно не работает? Что происходит?
Что именно не работает? Что происходит?
Код: Выделить всё
<html><head><script src="http://vkontakte.ru/js/api/openapi.js" type="text/javascript" charset="windows-1251"></script></head> <script type="text/javascript"> VK.init({ apiId: 111111111, //ид вашего приложеия onlyWidgets: true });</script> <div id="vk_comments"></div><script type="text/javascript"> VK.Widgets.Comments('vk_comments');</script> <!-- Put this script tag to the <head> of your page --><script type="text/javascript" src="http://userapi.com/js/api/openapi.js?17"></script> <script type="text/javascript"> VK.init({apiId: API_ID, onlyWidgets: true});</script> <!-- Put this div tag to the place, where the Comments block will be --><div id="vk_comments"></div><script type="text/javascript">VK.Widgets.Comments("vk_comments", {limit: 10, width: "496"});</script> </html>Код: Выделить всё
<!-- Put this script tag to the <head> of your page --><script type="text/javascript" src="http://userapi.com/js/api/openapi.js?17"></script> <script type="text/javascript"> VK.init({apiId: 743131, onlyWidgets: true});</script> <!-- Put this div tag to the place, where the Comments block will be --><div id="vk_comments"></div><script type="text/javascript">VK.Widgets.Comments("vk_comments", {limit: 10, width: "496"});</script>