CODE |
<html> <body> <!-- default --> </body> </html> |
CODE |
<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr"> <ul class="socials"> <li class="shr-yandex"><a href="http://my.ya.ru/posts_add_link.xml?URL=http://ваш_сайт.ru<?php print $node_url ?><?php print t('&') ?>title=<?php print $title ?><?php print t('&') ?>body=<?php print $title ?>" rel="nofollow" title="Yandex" onclick="window.open(this.href,this.target);return false;">Добавить в закладки Яндекс</a></li> <li class="shr-vkontakte"><a href="http://vkontakte.ru/share.php?url=http://ваш_сайт.ru<?php print $url ?><?php print t('&') ?>title=<?php print $title ?>" rel="nofollow" onclick="window.open(this.href,this.target);return false;" title="Добавить в закладки Вконтакте">Добавить в закладки Вконтакте</a></li> <li class="shr-odkl"><a href="http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl=http://ваш_сайт.ru/node/<?php print $nid ?>" rel="nofollow" onclick="window.open(this.href,this.target);return false;" title="Класс!" >Класс!</a></li> <li class="shr-facebook"><a href="http://share.yandex.ru/go.xml?service=facebook<?php print t('&') ?>url=http://ваш_сайт.ru<?php print $node_url ?><?php print t('&') ?>title=<?php print $title ?>" rel="nofollow" onclick="window.open(this.href,this.target);return false;" title="Добавить на Facebook">Добавить на Facebook</a></li> <li class="shr-twitter"><a href="http://twitter.com/home?status=RT%20@<?php print $title ?>%20http://ваш_сайт.ru<?php print $node_url ?>" rel="nofollow" onclick="window.open(this.href,this.target);return false;" title="Tweet This!">Tweet This!</a></li> <li class="shr-mcrbgy"><a href="http://microbloggy.ru/dashboard?source=bookmarklet<?php print t('&') ?>bookmarklet_message=<?php print $title ?><?php print t('&') ?>bookmarklet_link=http://ваш_сайт.ru/node/<?php print $nid ?>" rel="dofollow" onclick="window.open(this.href,this.target);return false;" title="Добавить на MicroBloggy">Добавить на MicroBloggy</a></li> <li class="shr-googlebookmarks"><a href="https://www.google.com/bookmarks/mark?op=edit<?php print t('&') ?>bkmk=http://gamepart.ru<?php print $node_url ?><?php print t('&') ?>title=<?php print $title ?>" rel="nofollow" onclick="window.open(this.href,this.target);return false;" title="Добавить в Google Bookmarks">Добавить в Google Bookmarks</a></li> <li class="shr-moimir"><a href="http://connect.mail.ru/share?url=http://ваш_сайт.ru<?php print $node_url ?><?php print t('&') ?><?php print t('&') ?>title=<?php print $title ?>" rel="nofollow" title="Отправить в Мой Мир" onclick="window.open(this.href,this.target);return false;" >Отправить в Мой Мир</a></li> <li class="shr-lj"><a href="http://share.yandex.ru/go.xml?service=lj&url=http:/ваш_сайт.ru<?php print $node_url ?><?php print t('&') ?>title=<?php print $title ?>" rel="nofollow" title="Рассказать в ЖЖ" onclick="window.open(this.href,this.target);return false;" >Рассказать в ЖЖ</a></li> <li class="shr-blogger"><a href="http://www.blogger.com/blog-this.g?t=<?php print $title ?><?php print t('&') ?>u=http://ваш_сайт.ru<?php print $node_url ?><?php print t('&') ?>n=<?php print $title ?>" rel="nofollow" title="Рассказать в Blogger" onclick="window.open(this.href,this.target);return false;" >Отправить в Мой Мир</a></li> <li class="shr-liveinternet"><a href="http://www.liveinternet.ru/journal_post.php?action=n_add<?php print t('&') ?>cntitle=<?php print $title ?><?php print t('&') ?>cnurl=http://ваш_сайт.ru<?php print $node_url ?>" rel="nofollow" title="Рассказать в LiveInternet" onclick="window.open(this.href,this.target);return false;" >Рассказать в LiveInternet</a></li> </ul> </div> |
CODE |
div.shr-bookmarks {margin:20px 0;clear:both !important} div.shr-bookmarks-expand{height:32px;overflow:hidden} div.shr-bookmarks-bg-shr{ overflow: visible !important; z-index: 999; margin: 20px 10px 0 -30px; } div.shr-bookmarks ul.socials{width:100% !important;margin: 10px 0 0 40px !important;padding:0 !important;float:left !important;background:transparent none !important;border:0 none !important;outline:0 none !important} div.shr-bookmarks ul.socials li { background-image: url('shr-sprite.png') !important; background-repeat: no-repeat !important; display: inline !important; float: left !important; list-style-type: none !important; padding: 0 !important; height: 29px !important; width: 60px !important; cursor: pointer !important; margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important} div.shr-bookmarks ul.socials li:before,div.shr-bookmarks ul.socials li:after,div.shr-bookmarks ul.socials li a:before,div.shr-bookmarks ul.socials li a:after{content:'' !important} div.shr-bookmarks ul.socials a,div.shr-bookmarks ul.socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important;margin:0 !important;padding:0 !important} div.shr-bookmarks ul.socials a:hover,div.shr-bookmarks ul.socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important} li.shr-googlebookmarks{background-position:-70px bottom !important} li.shr-googlebookmarks:hover{background-position:-70px top !important} li.shr-googlereader{background-position:-210px bottom !important} li.shr-googlereader:hover{background-position:-210px top !important} li.shr-mail{background-position:-350px bottom !important} li.shr-mail:hover{background-position:-350px top !important} li.shr-twitter{background-position:-420px bottom !important} li.shr-twitter:hover{background-position:-420px top !important} li.shr-facebook{background-position:-630px bottom !important} li.shr-facebook:hover{background-position:-630px top !important} li.shr-friendfeed{background-position:-1750px bottom !important} li.shr-friendfeed:hover{background-position:-1750px top !important} li.shr-moimir{background-position:-980px bottom !important} li.shr-moimir:hover{background-position:-980px top !important} li.shr-yandex{background-position:-840px bottom !important} li.shr-yandex:hover{background-position:-840px top !important} li.shr-vkontakte{background-position:0px bottom !important} li.shr-vkontakte:hover{background-position: 0px top !important} li.shr-odkl{background-position:-210px bottom !important} li.shr-odkl:hover{background-position:-210px top !important} li.shr-mcrbgy{background-position:-490px bottom !important} li.shr-mcrbgy:hover{background-position:-490px top !important} li.shr-tumblr{background-position:-5110px bottom !important} li.shr-tumblr:hover{background-position:-5110px top !important} li.shr-lj{background-position:-280px bottom !important} li.shr-lj:hover{background-position:-280px top !important} li.shr-blogger{background-position:-700px bottom !important} li.shr-blogger:hover{background-position:-700px top !important} li.shr-liveinternet{background-position:-560px bottom !important} li.shr-liveinternet:hover{background-position:-560px top !important} |
CODE |
<a href="http://vkontakte.ru/share.php?url=http://ваш_сайт.ru<?php print $url ?><?php print t('&') ?>title=<?php print $title ?> |
CODE |
<?php print $url ?><?php print t('&') ?>title=<?php print $title ?> |
CODE |
<?php the_permalink() ?>&title=<?php the_title(); ?> |
CODE |
function NewOdnaknopka3() { this.domain=location.href+'/'; this.domain=this.domain.substr(this.domain.indexOf('://')+3); this.domain=this.domain.substr(0,this.domain.indexOf('/')); this.location=false; this.selection=function() { var sel; if (window.getSelection) sel=window.getSelection(); else if (document.selection) sel=document.selection.createRange(); else sel=''; if (sel.text) sel=sel.text; return encodeURIComponent(sel); } this.url=function(system) { var title=encodeURIComponent(document.title); var url=encodeURIComponent(location.href); switch (system) { case 1: return 'http://vkontakte.ru/share.php?url='+url; case 2: return 'http://www.facebook.com/sharer.php?u='+url; case 3: return 'http://twitter.com/home?status='+title+' '+url; case 4: return 'http://friendfeed.com/?title='+title+'&url='+url; case 5: return 'http://connect.mail.ru/share?share_url='+url; case 6: return 'http://www.livejournal.com/update.bml?event='+url+'&subject='+title; case 7: return 'http://memori.ru/link/?sm=1&u_data[url]='+url+'&u_data[name]='+title; case 8: return 'http://bobrdobr.ru/addext.html?url='+url+'&title='+title; case 9: return 'http://www.google.com/bookmarks/mark?op=add&bkmk='+url+'&title='+title; case 10: return 'http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl='+url+'&lname='+title; case 11: return 'http://www.mister-wong.ru/index.php?action=addurl&bm_url='+url+'&bm_description='+title; case 12: return 'http://del.icio.us/post?v=4&noui&jump=close&url='+url+'&title='+title; } } this.redirect=function() { if (this.location) location.href=this.location; this.location=false; } this.go=function(i) { this.location=this.url(i); //setTimeout('odnaknopka2.redirect()',2000); /* window.open(this.location,'odnaknopka'); var scr=document.createElement('script'); scr.type='text/javascript'; scr.src='http://odnaknopka.ru/save2/?domain='+this.domain+'&system='+i; document.body.appendChild(scr); return false; */ } this.init=function() { var titles=new Array('В Контакте','Facebook','Twitter','FriendFeed','Мой Мир','LiveJournal','Memori','БобрДобр','Закладки Google','Яндекс.Закладки','Mister Wong','Delicious'); var html=''; html+=''; for (i=0;i<12;i++) { html+='<a href="'+this.url(i+1)+'" onclick="return odnaknopka3.go('+(i+1)+');"><img src="http://savepic.ru/2715620.png" width="16" height="16" alt=" #" title="'+titles[i]+'" style="border:0;padding:0;margin:0 4px 0 0;background:url(http://savepic.ru/2715620.png) no-repeat -270px -'+(i*16)+'px"/></a>'; } document.write(html); } } odnaknopka3=new NewOdnaknopka3(); odnaknopka3.init(); |
CODE |
<script type="text/javascript" src="имя-файла.js"></script> |
QUOTE (Max @ Jun 29 2011, 01:28 AM) |
У этой одной кнопки морда такая жирная и совершенно пустая. Там явно не хватает продажных ссылок!!! И переоптимизированной портянки!!1 |
CODE |
http://del.icio.us/post?v=4&noui&jump=close&url='+url+'&title='+title |
QUOTE |
По аналогии добавить такие кнопки можно и на другие движки, только нужно узнать, какой код выводит адрес страницы (как в Wordpress - <?php the_permalink(); ?>). |
CODE |
<script type="text/javascript" src="http://kinoshechka.com/share42/share42.js"></script> <script type="text/javascript">share42('kinoshechka.com/share42/','','',150,20)</script> |
QUOTE |
Наконец-то нашел то что искал на сайте _http://share42.com |