Flow Flash AD using JavaScript and SWFObject

This article shows how to create a flow flash ad by using javascript together with swfobject. @see getScroll.js @see http://code.google.com/p/swfobject/ [codesyntax lang="html4strict"] <!DOCTYPE html>… Continue reading
Posted in Flash, JavaScript| Tagged , | Leave a comment

JavaScript Get Scroll Information

The script goes here : getScroll.js [codesyntax lang="javascript"] // get scroll information (cross-browser compatibility) function getScroll() { // t for top, l for left, w for width, h for height va… Continue reading
Posted in JavaScript| Tagged | Leave a comment

Introduction to NodeJS

1. What is node.js and what does it do? Evented I/O for V8 JavaScript. To provide a purely evented, non-blocking infrastructure to script highly concurrent programs. 2. Basic concept : blocking and no… Continue reading
Posted in JavaScript| Tagged , | Leave a comment

Custom Function - getElementsByClassName

[codesyntax lang="javascript"] document.getElementsByClassName = function(className) { var hasClassName = new RegExp("(?:^|\\s)" + className + "(?:$|\\s)"); var allElements = document.getElementsByTag… Continue reading
Posted in JavaScript| Tagged | Leave a comment

Basic of Dojo

We can import the package of dojo toolkit everytime and everywhere using CDN provided by AOL or Google Api. The size of it is only about 30k : [codesyntax lang="javascript"] <!-- From AOL --> <script … Continue reading
Posted in JavaScript| Tagged , | Leave a comment