[Webdev] DHTML etc.
hostyle at csn.ul.ie
Fri Jun 7 11:52:43 IST 2002
At 11:19 AM 07/06/2002 +0100, John P. Looney wrote:
> I was wondering - anyone know how DHTML works ? My understanding is a
>little limited in that I'm not sure how the DOM works, and the docs are
>really complex, so I'll leave it till I understand a bit, before diving
Well I have a good idea how. Its best based on the DOM - a tree structure
of all HTML elements in the page - and manipulating the CSS (and other)
properties of those elements.
> Say I've a page with a div called "content". I want to be able to
>reposition the div, in the same was as yer man repositions an image on
> However, you can click on an image. You can't click on a div. So, I was
>thinking, how about have a <h2> element in that div that I could click on.
>Can I then just give that <h2> a "title" of "windowbar", and then access
use "id" not "title" ...
> content.windowbar ?
myDIV = document.getElementById("content")
myWindowbar = document.getElementById("windowbar")
> Most confusing all this.
>John Looney Chief Scientist
>a n t e f a c t o t: +353 1 8586004
>www.antefacto.com f: +353 1 8586014
>Webdev mailing list
>Webdev at linux.ie
Lee Hosty -x- hostyle AT csn.ul.ie -x- +353 (0)86 8768780
We won't follow religion, we are one. - Arch Dandy, Marilyn Manson
More information about the Webdev