Tangle:能产生数据互动效果的Javascript程序包

Tangle是一个能产生数据互动效果的Javascript程序包,什么叫互动效果,这个解释起来很麻烦,读者也未必一时就能明白,但看一个例子,自己操作一下,我想大家一下就知道这个Javascirpt程序包能做什么了。
那好,把鼠标放在下面有下划线的数据上左右拖动,效果就会出来。
提醒:这些示例不支持低于IE9的IE浏览器

如果你吃了 块饼干 ,你消耗的热量是 大卡。

是不是太简单了,谁都能实现。那么,再看一个复杂点的例子:
下面的这段文字中的所有有下划线的字符都能拖拽。

提案 21:州立停车场的停车费
目前的方式:

加利福尼亚有 个州立停车场,包括海滨和古迹。目前的每年 百万美元的预先不够维持这些停车场。大概有 个停车场只能部分时间里开放。大多数的停车场会向每辆车收取 的管理费。

提案 21的建议是:

向每辆车主收取每年18美元的注册登记费。登记完的车可以免交停车费。

分析:

Suppose that an extra was charged to % of California taxpayersvehicle registrations. Park admission would be for those who paid the chargeeveryone.

This would collect an extralose $ million ($ million from the tax, plusminus $ million additionallost revenue from admission) for a total state park budget of $ million.

This is not sufficient to maintain the parks, and parks would be shut down at least part-time. This is sufficient to maintain the parks in their current state, but not fund a program to bring safety and cleanliness up to acceptable standards. This is sufficient to maintain the parks in their current state, plus fund a program to bring safety and cleanliness up to acceptable standards over the next years. This is sufficient to maintain the parks and bring safety and cleanliness up to acceptable standards, leaving a $ million per year surplus.

Park attendance would risefall by , to million visits each year.

感觉如何?是不是挺神奇的,实际上,这个程序库的官方网站上还有一个更复杂,设计到电路控制图形的例子,有兴趣的朋友可以去看看。

这个javascript程序库的官方地址在这里,下载地址在这里







分享这篇文章:

7 Responses to Tangle:能产生数据互动效果的Javascript程序包

  1. 孔祥赫 says:

    这个交互包太棒了

  2. spark says:

    做在线拍卖系统的绝配啊,感觉。

  3. 大乐 says:

    很不错的一段代码。国内的网站没几个人应用吧。太棒了。

  4. Leo says:

    报告发现,这样的应用在Google+出现

  5. Sweet says:

    现在的Web应用越来越炫了。

  6. xz_ccf says:

    互动是王道。。。

  7. Yaoyuan says:

    不了解javascript路过,不过这种互动确实很带感!

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据