phill84.org

System.out.print

Main menu

Skip to primary content
Skip to secondary content
  • home
  • tweets
  • about.me

Tag Archives: javascript

Correction of Listing 2-25 in Pro Javascript Techniques

Posted on March 8, 2011 by phill84
Reply
function User(properties) {
        for (var i in properties) {
                (function(){
                        var key = i;
                        this['get' + key] = function() {
                                return properties[key];
                        };
                        this['set' + key] = function(val) {
                                properties[key];
                        };
                }).call(this);
        }
}
Posted in Programming | Tagged javascript, privileged method | Leave a reply

Loading bar added

Posted on April 10, 2009 by phill84
Reply

In the beginning I was gonna make the loading bar which would depend on the loading progress of images on the page, but later on it seemed a bit too advanced for me…

so I just used another easy implementation

ideas were taken from jQuery 页面载入进度条 and How to create a stylish loading bar as Gmail in javascript

Posted in wordpress | Tagged javascript, loading bar, wordpress | Leave a reply

 

February 2012
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
272829  

Categories

  • blah
  • linux
  • movie
  • osx
  • Programming
  • tv
  • wordpress

Archives

Links

  • alex
  • blacktulip
  • cynix
  • deepwhite
  • dilys
  • emilia
  • maxm
  • mdl
  • net1999
  • tshijing
  • weeker
  • xia
Proudly powered by WordPress