DHTML : Dynamic HTML
DHTML (Dynamic HTML) est un moyen utilisé pour rendre vos pages dynamiques. Le DHTML est à la rencontre du JavaScript, des feuilles de style et du DOM.Boucler sur tous les éléments d'un document :
function go() {for (e=0;e
if (document.all[e].tagName=='P') {
document.all[e].attachEvent('onmouseover',scred);
document.all[e].attachEvent('onmouseout',scblack);
}
}
Tiré de DHTML part 2: collections and styles, paragraphe attachEvent.
Toutes les propriétés de style : la liste de tout ce qu'il y a en dessous de elem.style ... très détaillé.
Articles sur DHTML et plus particulièrement les évènements
- Events And JavaScript: Part 1 - Event Handling : An introduction to attaching events to HTML elements and using JavaScript event handling. Programming Languages are often quoted as being Object-Orientated, Event-Driven Languages. Together, HTML and JavaScript provide an excellent example of this model. HTML provides the objects, and JavaScript provides the event handling capability.
- Events And JavaScript: Part 2 - Advanced Event Handling : Our second JavaScript event tutorial looks at Advanced Event Handling. The three sections we cover here are Cancelling Events, Event Bubbling, and Mouse Capture. If your JavaScript skills are at an intermediate level and you want learn more, this is a fine place to start.
- Events And JavaScript: Part 3 - The Event Object : Whenever an event fires, the computer places data about the event into the Event Object - for example, where the mouse pointer was on the screen at the time of the event, which mouse buttons were being pressed at the time of the event, and other useful information. This opens up possibilities for creating very intricate and complex programs.
- JavaScript Dynamic Document Creation : Dynamic Document Creation is the creation of a Web document from within JavaScript.
- JavaScript Dynamic Document Creation in New Windows : A second article on JDD, explaining how to open and close a new browser window and how to create dynamic content for a new window.
Scriptaculous
- Scriptaculous : very famous javascript library.
Tags : DHTML JavaScript css
Pages ayant pour tag : DHTML
- Ajax : Ajax : c'est pour les wc
- javascript/table : JavaScript et les tableaux
- javascript/drag : Faire glisser les élements grace à JavaScript (draggable elements with JavaScript)
- DHTML : DHTML : Dynamic HTML
Ecrire votre commentaire
Vous devez vous connecter pour pouvoir ajouter un commentaire.