没有样式就是最好的样式

Archive for May, 2005


表格间隔背景色效果

May 23, 2005 Author: | Filed under: Uncategorized

Zebra Tables,这个代码有点意思。简化版如下,完整代码在

http://validweb.nl/artikelen/javascript/better-zebra-tables/

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

关于 window.opera 对象

May 21, 2005 Author: | Filed under: Uncategorized

opera(以后简称 op)不认识

location=”view-source:”+location

这样“查看源代码”的代码(ff ie 都可以)。可用opera.openInSourceViewer(location)来代替。稍有不同,view-source 是用浏览器本身不渲染 html 代码来显示,op则是调用你设置的文本编辑器。

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

相关资料:

http://www.howtocreate.co.uk/operaStuff/operaObject.html

[Edit on 2005-5-21 12:02:32 By guoshuang]

alt2title 代码

May 21, 2005 Author: | Filed under: Uncategorized

ie 把alt当成 title 来显示提示信息,虽然不符合W3C本意,但也很实用,因此出现了 ff op相关插件 myjs 等。这个是 op 的,一会仔细看看为何 ff无效。稍微改改,也可以用作 bookmarklet …

代码写的很有意思。

显示更多

[Edit on 2005-5-21 11:05:23 By guoshuang]

firefox 趣文二则

May 20, 2005 Author: | Filed under: Uncategorized

firefox 启动脚本

不知大家详细看过Mozilla的启动脚本没有,实际上我们根本不需要那些的

(Mozilla启动速度慢是有它贡献的;-)

一个简单的方法,直接将那几个变量放到启动脚本,比如/etc/profile,以后

直接运行其中的firefox-bin(or mozilla-bin)就行了。

对于firefox(假设装在了/usr/local/firefox):

========================================================================

#firefox

ff_home=”/usr/local/firefox” #你只需要更改一下这个变量

MOZILLA_FIVE_HOME=$ff_home

LD_LIBRARY_PATH=”${ff_home}:${ff_home}/plugins”

DYLD_LIBRARY_PATH=$ff_home

LIBRARY_PATH=”${ff_home}:${ff_home}/components”

SHLIB_PATH=$ff_home

LIBPATH=$ff_home

ADDON_PATH=$ff_home

export MOZILLA_FIVE_HOME LD_LIBRARY_PATH DYLD_LIBRARY_PATH LIBRARY_PATH SHLIB_

PATH LIBPATH ADDON_PATH

=========================================================================

对于mozilla自然区别不大了,大家可以通过运行 mozilla -g’来获得那些变量,

没必要自己去分析脚本。(看见了吧,本来mozilla-run就是为开发者准备的)

实际上上面的有些变量可以不设置的,我只是偷懒而已。好了,现在试试速度吧,

我的mozilla由原来的3s提到2s了(VIA694X+CII700MHz+sdram128Mx2+

kernel-2.6.8-gentoo-r7)。

btw:我想此时你已经想到了吧,其他很多类似的软件,包括系统启动脚本,都可以

通过类似办法来提速。(看看启动时在什么地方停顿最久,可以到/etc/init.d下修改

相应的脚本──不一定用这种办法,比如aumix的stop中

/usr/bin/aumix -f /etc/aumixrc -S >/dev/null 2>&1 #gentoo

你就可以直接将其注释掉,aumixrc改一次就够了(否则关机时会在这里等很久)。

另外我想大家在Linux下还很怀恋WIN下的“金山词霸”吧,没关系,词霸有网络版,

速度很快,hxxp://cb.kingsoft.com ,我们只要写个简单的脚本就可以在firefox

或mozilla的搜索栏中搜了(我想金山以后可能会推出词霸的Linux版吧:-)

==================================================================

#filename: ciba.src

# CiBa of Kingsoft, by pH

name="CiBa"

description="CiBa"

method="GET"

action="hxxp://cb.kingsoft.com/search"

queryEncoding="gb2312"

queryCharset="gb2312"

>

==================================================================

保存成ciba.src,放在firefox/searchplugins下(mozilla相应),做个小图标

ciba.png放在同一目录便可。我将这个放在附件中,大家就不用自己麻烦了。

你又想到写一些其他的搜索插件了吧?

firefox 搞笑插件

11. GetOffYourLazyButtAndWalkToTheFrontDoorForPetesSake 0.01 - Snail mail notifier (以彼德的名字挪动你的懒屁股到前门去看看0.01-蜗牛邮件提醒)

10. Tab-A-Licious 0.3 - Move tabs anywhere. You heard me. Anywhere.(把TAB移动到任何地方,你没听错,任何地方!)

9. MajorityNow - Surfs while your computer is idle to increase the browser usage stats for Firefox.(终于成为大多数-当你电脑待机的时候自动浏览Internet,以提高Firefox的市场占有率)

8. FoxySomething 0.8 - CD-tray ejector(狐狸什么0.8-CD任务栏弹出)

7. ClassiqView 1.1 - Also known as “I can’t believe it’s not IE.” Breaks W3C compliance.(经典浏览1.1-也有人叫他“我简直不能相信这不是IE”)专门不兼容W3C的标准。

6. ExtendItNow! 2.1 - Pings update.mozilla.org every 15 seconds so you’ll know when it’s back up. Never have outdated extensions again!(现在就扩展! 2.1-每15秒种ping update.mozilla.org,确保你的所有扩展绝对不过时。)

5. BirdWatch 0.3 - Interprets gestures using webcam and adds the appropriate emoticons in IM client or email.(鸟观察0.3-用摄象头解释动作并在IM里或者Email里加入相对应的表情符号)

4. PopUpEncourager - For those popup lovers, for every popup window on a webpage, FireFox will display 2.(弹出窗口鼓励者-对喜爱弹出式窗口的朋友,Firefox会把每个弹出的窗口显示成两个)

3. MgroeningFortune 6.6 - Pops up random Simpons quote related to the current website. Flanderiser impro-diddli-oved.(我也不理解 :()

2. DDDownload 0.65 - Automatically sorts all downloaded pictures based on hair color and cup size.(DD下载0.65-自动按照头发的颜色和罩杯的大小排列下载的图片。)

1. SpamHelper 0.98 - Automatically gets all email addresses from pages you visit and adds them to your list of “customers.”(垃圾邮件帮助者 0.98-自动获取你所浏览的网页上的所有邮件地址并加入到你的地址簿的“客户”一栏)。

[Edit on 2005-5-20 21:53:00 By guoshuang]
[Edit on 2005-5-21 7:25:03 By guoshuang]

netscape 8.01 浏览器推出

May 20, 2005 Author: | Filed under: Uncategorized

突然看到这个 出色不出众-Netscape 8 试用体验,有点吃奇,nn8 beta不是早就出了吗?这是以前发的关注 nn8 的日志:

Netscape Browser 8.0 BETA 终于可以下载了

netscape 8 beta(0.9.4)试用

netscape 推出 prototype 0.64

Netscape Browser 8.0 beta(v0.5.6)测试

到nn站点看了下,原来这次是 8.01版本。根据以往的经验,nn 8 的各个版本都有比较严重的错误,交互设计、功能、稳定性、性能等各方面都差强人意,:(感觉nn就像国内的国营企业一样缺乏认真和热情…

网友评价:

来自:

http://community.netscape.com/n/pfx/forum.aspx?webtag=ws-nscpbrowser&nav=pollResults&tid=475&vote=-1

还是用的若干年前的那种下载一个很小的程序,安装时再下载的方式,真郁闷,国外站点本来就慢,nn站点更是慢中之慢,找到一个完整文件的下载地址:

http://ftp.netscape.com/pub/netscape8/english/8.0/windows/win32/nsb-install-8-0.exe

安装后,第一个感觉是“怎么还和原来(beta)一样”,慢而且拥挤的界面,默认两种主题netscape winscape 1.0

netscape fusion 1.0,简直越来越像装了一大堆插件的firefox 了,:(忍着用上若干天再评价吧。这是build版本

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20050519

[Edit on 2005-5-20 18:56:08 By guoshuang]

浏览器 web standard 测试

May 20, 2005 Author: | Filed under: Uncategorized

这是正确时应该显示的效果:

在这是测试你现在使用浏览器的效果:

http://www.webstandards.org/act/acid2/test.html#top

opera,firefox仍然有出入,IE则根本看不出来什么东西,:(

以下为引用内容:

Acid2 is a test page, written to help browser vendors ensure proper support for web standards in their products.

The Web Standards Project is a grassroots coalition fighting for standards that ensure simple, affordable access to web technologies for all.


据猫头猪说,这个 safari 通过了 Acid 2 测试

参考资料:

http://www.webstandards.org/act/acid2/

http://www.webstandards.org/act/acid2/guide.html

[Edit on 2005-5-20 15:23:40 By guoshuang]
[Edit on 2005-5-20 20:12:14 By guoshuang]
[Edit on 2005-5-21 11:57:10 By guoshuang]