分享jQuery1.2的CHM版(增UI、插件文档)

jQuery前端开发人员来说,实在是一个不可多得的“利器”。

我认为,原型开发者(Prototype Developer)肯定更加喜爱jQuery这套框架,没有Yui-Ext的庞杂,没有Prototype(框架)的OOP语法。jQuery的“哲学”(philosophy,或者叫“理念”吧)无不映射着一种“简单、朴实”之美:Find things, do stuff(我姑且理解为“物尽其用”)

然而,jQuery的文档却一直没有好的支持。官方的服务器我这边访问起来比较慢,有时候在正规项目中,又必须追求好的质量,这意味着要不停地查阅文档。(如果你告诉我一个优秀的JavaScript程序员应该把每一条语句烂记于心,我建议你继续接受我们的义务应试教育)

下载地址:

最后,关于这俩个CHM,还有一个小插曲:原本,我是通过搜索一些相关的关键词来到一个Google Group,然后看到一个blog提供了下载地址(这个wordpress.com为就得用proxy才可以访问到)。结果链接过去发现是4share的链接。这下我的proxy也没戏了。后来,联系到作者Peacech。我简述了我的要求,他立即上传到了GoogleCodes(也就是上面的地址),但有一个问题,他始终没有搞明白:“Why they are bl0cking 4share”。我只能说“It’s complicated”了……

PS:Peacech是印尼人,他最后告诉我,印尼只有少部分人是因特网活跃用户,而几乎没有什么“local”(本地化)web2.0网站。不过,关于印尼方面在Web上的言论问题,Peacech告诉我是很自由的(考虑到一些风险,原话已经删去)

jQuery升级到1.2.1 – 9月的惊喜

最新消息,jQuery 1.2.1也已经发行了!而更让人振奋的是,官方的jQuery UI也刚刚发布了最新版。这意味着,Web前端RIA框架的斗争,最终很可能以jQuery的“独霸”未结束。

值得一提的是,大家可以看看这款叫做《Advanced Image Gallery》的Demo。不过目前在IE和Safari下有一些问题,jQuery团队正在修正中。

不过,jQuery配合“老对手”的YUI compressor+GZIP居然可以将代码量压缩到10k,这一点确实让我们很惊讶。大家有空可以看看这篇文章

Continue reading “jQuery升级到1.2.1 – 9月的惊喜”

Use a simple jQuery to improve your Alexa Rank

Well, As was mentioned in many articles about “How to improve your Alexa Rank”, there is a very enticing method to get all the non-Alexa-toolbar users invovled: to use the “Redirect” from Alexa.

But also, the is something more we can do. To make it really a perfect solution, we can just use this code:

setTimeout(function(){
$("a").each(function(){
if(new RegExp("^http").test($(this).attr("href")))
{
    $(this).click(function(){
        window.location.href = "http://redirect.alexa.com/redirect?"+this.href;
        return false;
    })
}
})
},1000);

Why I am saying it’s perfect? See this:

  1. SEO friendly
    The search engines will never get the unuseful “redirect” attribute from the anchor element.
  2. User friendly
    The JavaScript code runs one second after the page is loaded. So the users just smoothly get over it.
  3. Goole PageRank friendly (Reference friendly)
    I am not using the “href-overwrite” way as what I did before, instead, I use an event-binding to all the anchor elements which has an “href=^http” attribute, so the guy who just simply copy your HTML will keep your original URL, to keep you still get a back-link.

This is just a simple tip from aw (http://www.awflasher.com/blog/). I am a Chinese web developer. So, If you think it’s helpful, feel free to digg or share this topic 🙂

The follow is the old solution, you may just pass it (in Chinese).

Continue reading “Use a simple jQuery to improve your Alexa Rank”