ubuntu,firefox,opera,css,javascript,xhtml,ui design,blog,geeks…
24 Sep 2004
采用这样的形式即可。
XXX 为你的用户名,参数说明如下:
官方参数说明:
/html/USERNAME/ [?arg=val&arg=val....]
or
/html/USERNAME/TAGNAME [?arg=val&arg=val....]
&count default=15
number of items to show
&extended default=”title”
either “title” or “body”
&divclass default=”delPost”
class to use for div
&aclass default=”delLink”
class to use for link
&tags default=”yes”
show tags or not, either “yes” or “no”
&tagclass default=”delTag”
class to use for tags
&tagsep default=”/”
string to use for separator
&tagsepclass default=”delTagSep”
class to use for separator
&bullet default=”raquo”
html entity to use for bullet, set it to empty to delete
&rssbutton default=”yes”
add an RSS feed button (using CSS)
&extendeddiv default=”no”
extended entry in its own div
&extendedclass default=”"
class to use for extenddeddiv
Text is UTF-8 encoded but is not marked as such; beware.
页面使用的是utf-8编码,却没有标注!切切!(这个很重要,否则中文乱码,如果主文档是gb2312的话)
Please do not cause one hit to delicious per one hit to your site; this will be considered abuse. Use caching or similar.
我用xmlhttp 读取了
http://del.icio.us/html/guoshuang?count=5&rssbutton=no&bullet=
文本流,然后定制了样式表输出。效果如下:
完整的asp代码如下:
<%
Response.Buffer = True
Dim objXMLHTTP, xml
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", "http://del.icio.us/html/guoshuang?count=5&rssbutton=no&bullet=", False
' Actually Sends the request and returns the data:
xml.Send
Response.Write xml.responseText
Set xml = Nothing
%>
生成的html代码如下:
注意里面的 class=”delPost” 和 class=”delLink” 本来就是给我们修改显示样式用的。上面参数部分说的很清楚。
Leave a reply