вторник, 10 мая 2011 г.

Кнопка Вконтакте

Все кнопки, описанные ниже, вы можете установить со страницы Вконтакте.
Для установки кнопки дается два кода. Первый код необходимо установить перед закрывающим тегом </head>:
<script type="text/javascript" src="http://vk.com/js/api/share.js?90" charset="windows-1251"></script>
Остальной код вставляется там, где должна быть кнопка.
Кнопка без счетчика:
Код:
<!-- Put this script tag to the place, where the Share button will be --> <script type="text/javascript"><!-- document.write(VK.Share.button(false,{type: "round_nocount", text: "Сохранить"})); --></script>
Кнопка со счетчиком
Код:
<!-- Put this script tag to the place, where the Share button will be --> <script type="text/javascript"><!-- document.write(VK.Share.button(false,{type: "round", text: "Сохранить"})); --></script>
Кнопка в виде маленькой иконки

Код:
<!-- Put this script tag to the place, where the Share button will be --> <script type="text/javascript"><!-- document.write(VK.Share.button(false,{type: "custom", text: "<img src=\"http://vk.com/images/share_32.png\" width=\"32\" height=\"32\" />"})); --></script>

0 коммент.:

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