2007 年 2 月

Dreamhost停电?

这天下午,我有个在dreamhost的空间直到现在还无法访问,包括dreamhost的主站.平时不太注意dreamhost的status,弄不清是GFW开始ban ip呢还是dreamhost那边脱链子了.还好我努力搜索了一把,才知其所以然:
才在DreamHost Status看到的: 由於机房停电的因素, DreamHost 将於 2/25 (周日) 下午 3:15 到晚上8点之间关机…DreamHost,所以到时也会连不上
真是无可奈何,不知道有没有更好的空间选择

评论 (2)

Yahoo提供公开的YUI Hosting

最近YUI出了2.20版,紧接着就在其主机上免费提供YUI里用到的css,javascript以及图片.
免费提供的资源

JavaScript files: These files provide the functional behavior of YUI utilities and UI controls.
CSS files: In some cases, YUI controls ship with predefined visual designs, enabling you to implement them more easily out of the box. In these cases, presentation information is included in CSS files accompanying the control.
Image files: Where YUI controls have default […]

评论

在wordpress插件中应用jquery

最近在实现wordpress的一个插件时,准备利用jquery.js减少javascript代码量,但是wordpress本身用上了prototype.js,这两者之间有兼容性问题,脚本当场罢工。打架的主要罪魁祸首是document.getElementById的快捷函数"$",jquery和prototype都有这个偷懒的东东。
网上提到了一个很简单的解决办法:
PLAIN TEXT
JAVASCRIPT:

<script src="jquery.js"></script>

<script type="text/javascript">

jQuery.noConflict();

</script>

只要加入一行:
jQuery.noConflict();
就能解决冲突的问题,看来jquery早就对这个情况有应对.

评论 (1)