AJAX
Contents |
[edit]
Object oriented programming
(in construction)
[edit]
Writing classes
// Static variables go here
MyClass.CONSTANT = "something";
function MyClass(arg1, arg2)
{
this.myMethod = function(a, b)
{
// do something
}
// Constructor goes here
this.value1 = arg1;
this.value2 = arg2;
}
c = new MyClass(4, 5);
c.myMethod(2, 3);
[edit]
Managing events
[edit]
Dynamic HTML (DHTML)
[edit]
DOM API
[edit]
Managing user events
[edit]
Java script
Pour récupérer la taille réelle d'un élément on peut utiliser element.clientWidth et element.clientHeight (e.g., Document.body.clientWidth)
et la position :
element.offsetTop et element.offsetLeft
[edit]


