[Webdev] DHTML etc.
Lee Hosty
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
>in.
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
> http://www.mozilla.org/start/1.0/demos/eagle-sun.html
>
> However, you can click on an image. You can't click on a div. So, I was
<DIV onClick="javascript: alert(this.innerHTML)">blah</DIV>
>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" ...
>that as
>
> content.windowbar ?
OTOH
myDIV = document.getElementById("content")
myWindowbar = document.getElementById("windowbar")
> Most confusing all this.
>
>Kate
>
>--
>_______________________________________
>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
>http://www.linux.ie/mailman/listinfo/webdev
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
mailing list