用furl生成新闻列表的方法

September 5th, 2004   Filed under Internet

@ 2004-09-05 09:33

keso’s blog中看到他生成“昨日新闻的方法”:

其实很简单。首先,我用Furl提供的JavaScript功能,制作一个本地HTML文件,内容为:

>html<

>META http-equiv=”Content-Type” content=”text/html; charset=utf-8″<

>title/title<

>body<

>script type=”text/javascript” src=”http://www.furl.net/jsDays.jsp?id=11943&days=1″<>/script<

>/body<

>/html<

其中id=11943是我在Furl的ID,days=1表示更新最近一天的内容。这样我在浏览器中打开这个本地HTML文件,就可以看到自动生成的新闻标题。将这个页面的源码复制到UltraEdit-32中,用事先录制好的一个宏来将源码中的>table<、>tbody<、>tr<、>td<、>/td<、>/tr<、>/tbody<、>/table<替换为>ul<、>li<、>/li<、>/ul<,也就是说,不使用Furl生成的表格,代之以列表。UltraEdit-32强大的查找/替换功能,可以很好地帮助我完成上述工作。把这个过程录制为宏,指定一个组合键(如Ctrl+Alt+F),让程序启动的时候自动加载这个宏,每次只需按一下组合键,就完成了一组查找/替换。

把替换完成的源码,复制出来,打开Donews Blog编辑器,以HTML模式粘贴,然后发布。

Tags: ,

No Response

Come on buddy, give some response.

Leave a Reply

Subscribe

This Blog

Hi, I'm Chern. This is my personal blog. I'm currently working for a business consulting firm in Shanghai. I don't quite love my work though and is always seeking a way to escape. But I don't know wher to escape. Pity!

I'm not a coder nor a designer, however, I believe the quote "Code is poem" and weight algorithm and UI the same importance. I like Googel services and hope one day that Google can provide all the services I need. more abt. me...

Recent Comments

Twitter @chn_ping

Posting tweet...


My Douban