Posts

Showing posts with the label tutorial

לינקים מעניינים ל - HTML5

לינקים מעניינים, חומרים, מצגות, משחקים והדגמות ל - HTML5 Slides HTML5 Rocks Slides (2010) HTML5 Latest Slides (2011-07-01) Shows Introduction to HTML5 Mobile: HTML5 vs Android Native HTML5 tutorials Demos & Games Chrome Expiriments CE: WebGL: Jelly Fish CE: Game: z-type CE: Video: Video Explosion Video: Stack & Rotate Video: Subtitles Game: Tetris Game: AngryBirds CSS3 Playground Humble Graphs gRaphaël Resources W3C HTML5 spec HTML5 Logo Mozilla tutorial rotating video HTML5 Using Form Validation Patterns Test your browser for HTML5 completness HTML5 Snippets Howto HTML/5 Elements Browser Compare Form Elements Browser Support IE9 vs. FF4 When can i use? HTML5 Browser Support HTML5 Readiness CSS3 Selectors CSS3 Selectors and Competability CSS3 Elements and Support

JavaScript Object Oriented - תכנות מונחה עצמים

אני יודע שכבר מאות פוסטים נכתבו על הדבר הזה, אבל תמיד נוח שיש משהו מרוכז במקום אחד, ולכן כמה דוגמאות פשוטות ליצירת אובייקטים ב - JavaScript והשימוש בהם. // declartion class a with private function function x() { this.id = 0; function getid() { // undefined - because this meanse the private alert('x' + this.id);function } getid(); } var nx = new x(); // error - undefined cuz it is private function //x.getid(); x(); // declartion class a with public function function a() { this.id = 0; this.getid = function() { alert('a' + this.id); } this.getid(); } // using class a var b = new a(); b.getid(); // object creation on the fly var o = { id: 0, getid: function() { alert('o' + this.id); } } o.getid();