You cannot post messages because only members can post, and you are not currently a member.
Description:
Javascript monger in hsinchu.
|
|
|
jFormino 0.21 released
|
| |
With the respect to the official jQuery Form plugin, we are now
officially renamed to jFormino. Please download it at:
[link]
The 0.21 release is pretty much the same as 0.20 release. The major
change is that we renamed the $.fn.form method to $.fn.formino, just... more »
|
|
ANNOUNCE: jQuery Form 0.20 is released just now
|
| |
Hello, jQuery lovers,
We're very happy to release jQuery Form 0.20, a plugin that let you
generate a form very easily, it's now also a framework for form-based
UI. It's now available download at:
[link]
For a quick update, we now have YUI-compatible datetime picker, and a... more »
|
|
在 Safari 上的 window.onbeforeunload
|
| |
onbeforeunload 在 Safari 上的行為不太一樣。IE 與 Firefox 需要設置 event.returnValue ,但
在 Safari 上的需要傳回它:
window.onbeforeunload = function(event) {
if (!event) event = window.event; // for IE
var message = "You have something unsaved.";
if (is_safari) {... more »
|
|
Javascript 中的保留字
|
| |
偶爾有些時候會把 "class"﹑"default" 這些常用的字拿來做為雜湊的鍵,但其實這兩個字是 Javascript 之中的保留字。因此 有些特別。比如說: foo.default 在 IE 之中是文法錯誤,必需要改寫為: foo["default"] 值得注意的是,在 Firefox 中兩種寫法都行。不太確定是否有規範規定這種狀態應有的正確行為 。也許正確的做法是產生文法錯誤,而這確實是屬於... more »
|
|
Widget.Lightbox.LargeType
|
| |
If you ever use QuickSilver on Mac, you probably noticed that there's a "LargeType" action that display a string you give on screen in some very large font size. I add that feature to my Widget.Lightbox module. Here's a screenshot: <a href="[link]" title="Photo... more »
|
|
Function.intervalize released.
|
| |
Hi, all. Function.intervalize 已經釋出於 JSAN。這個模組是為了解決此項特定的問題:函式可能常常會在 一段很短暫的時間內被大量呼叫 好幾次,使得 CPU 使用率突然飆高。比如說,如果我有一函式 notify(): function notify(msg) { // 在畫面左下角顯示一小段訊息... more »
|
|
Widget.Lightbox 0.09 hits JSAN.
|
| |
Widget.Lightbox 0.09 released. Widget.Lightbox is an objective re-implementation of Lightbox JS ([link]). It has several nice features: * Requires no extra image files * Requires no extra CSS files and rules * Optionally supports script.aculo.us effects library.... more »
|
|
亂數產生顏色
|
| |
以下這一列是用來產生 CSS 指定顏色時可用的 rgb(R,G,B) 字串。 "rgb(%,%,%)".replace(/%/g, function() { return Math.floor(Math.random()*255) }) 了解到 replace() 的第二個參數也可以是個 function() 的話,有些討厭的字串接續動作也可以變成字串內插變數,而迎刃而 解了,... more »
|
|
|