• Welcome to Simple Machines Community Forum. Please login or sign up.

Jel zna neko kako da napravim bookmarks button

Started by srbija-tip.com, March 13, 2009, 06:12:56 PM

Previous topic - Next topic

srbija-tip.com

Jel zna neko kako da napravim bookmarks button
forum je
www.bet-team.org
I da izaberem sliku koja ce biti

Ravac

kakav button? mislis na ovo kao reg. login. search. i ostalo ?


srbija-tip.com

Mare to sam pokusao, i ubacim ga u index.templates sa bannerima dole kod mene na forumu ali prijavljuje mi gresku u index.templates onda

Ravac

Zato sto nisi dobro ubacio kod, pregledaj sta nije kako treba, i naravno ' menjas sa \'
PS: ne ceo index.template.php nego samo taj kod :P

srbija-tip.com

March 14, 2009, 07:35:21 AM #5 Last Edit: March 14, 2009, 07:37:44 AM by markosvaba
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="markosvaba";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-bookmark-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
<!-- AddThis Button END -->



Ovo je kod. Ja ga ubacim izmedju


echo'
<center><a href=http://www.supertip.org> <img src=http://www.tipovi.rs/partner_img/supertip.gif> </a>
<a href=mailto:markomkc@gmail.com> <img src=http://bet-team.org/Slike/razmena.gif> </a>
<br>
<!--/Start Hitrang.com/-->
<script type="text/javascript">t_rid="betteamorg";</script>
<script type="text/javascript" src="http://storage.hitrang.com/js/trafic.js">
</script>
<noscript>
    <a href="http://www.hitrang.com/top/?rid=betteamorg"
     target="_blank"><img border="0" alt="trafic ranking"
     src="http://storage.hitrang.com/cgi-bin/pl.dll?rid=betteamorg"/></a>
</noscript>
<!--/End Hitrang.com/-->

<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="markosvaba";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-bookmark-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
<!-- AddThis Button END -->

</center>
';


i to izgleda ovako


echo'
<center><a href=http://www.supertip.org> <img src=http://www.tipovi.rs/partner_img/supertip.gif> </a>
<a href=mailto:markomkc@gmail.com> <img src=http://bet-team.org/Slike/razmena.gif> </a>
<br>
<!--/Start Hitrang.com/-->
<script type="text/javascript">t_rid="betteamorg";</script>
<script type="text/javascript" src="http://storage.hitrang.com/js/trafic.js">
</script>
<noscript>
    <a href="http://www.hitrang.com/top/?rid=betteamorg"
     target="_blank"><img border="0" alt="trafic ranking"
     src="http://storage.hitrang.com/cgi-bin/pl.dll?rid=betteamorg"/></a>
</noscript>
<!--/End Hitrang.com/-->

</center>
';




Ravac

Probaj ovaj kod:

<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="markosvaba";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/sm-bookmark-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
<!-- AddThis Button END -->

srbija-tip.com

Radi a ja mislio da kada neko dodje da doda stranicu u favorites a ne ovakav bookmarks inace nije lose. Mislio sam na dugme za moju stranicu da je bookmars

Ravac

March 14, 2009, 08:28:46 AM #8 Last Edit: March 15, 2009, 02:04:49 PM by RavacDS
To je obicna skripta, pretrazi ove sajtove sa skriptama ima to sigurno, ali u nekim pretrazivacima ta opcija i ne radi bas najsrecnije...

<---edit--->

Evo skripte

function AddToFavorites()
{
    var title = document.title; var url = location.href;
    if (window.sidebar) // Firefox
    window.sidebar.addPanel(title, url, '');
    else if(window.opera && window.print) // Opera
    {
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar'); // required to work in opera 7+
    elem.click();
    }
    else if(document.all) // IE
    window.external.AddFavorite(url, title);
}


A evo koda koji ubacujes gde ti treba

<a href="javascript:AddToFavorites();" title="Bookmark this page">Bookmark this page!</a>

Advertisement: