在侧边栏显示sa.bros.us书签的最新内容

我们知道使用del.icio.us书签,有一段代码可以调用,来显示最新的书签。

为了不影响页面的加载,这里提供了方法。

因为怕有一天del.icio.us也被伟大的GFW给封锁了,所以我就用了sa.bros.us这个

的程序。

发现它也提供了这个相似的功能,具体设置是在http://yoursa.bros.us/generarBadge.php

可以看到,提供了一段代码,并且可以设置要输出的链接个数,以及过滤tag。

  1. <!-- Inicio de sabros.us Badge -->
  2. <style type="text/css">
  3.     #mi_sabrosus strong {
  4.         font-size: 13px;
  5. }
  6. </style>
  7. <script src="http://fav.manboo.info/badge.php?cuantos=10" type="text/javascript"></script>
  8. <!-- Fin de sabros.us Badge -->

注意上面这段代码要做些修改,style标签是来设置输出的样式的。

但是,发现现在这样输出的是乱码,解决方法和这里一样。

用记事本打开badge.文件,查找htmlentities

将其一概删除即可。

如此,就是我现在侧边栏的效果了。

2006.10.20 Update:
V1.7版本中,badge.文件,还要把下面两行删掉或注释掉:

  1. $row["descripcion"]=utf8_decode($row["descripcion"]);
  2. $row["title"]=utf8_decode($row["title"]);

Popularity: 41% [?]

Tags: , , , ,
Related posts

cirtexhosting_ads.gif

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word