[thelist] fluid columns via DOM Jscript

Richard Bennett mail at richardinfo.com
Thu May 31 12:24:56 CDT 2001


> It really is excellent - the best use of DHTML I've seen. Hence me wanting
> to copy it :)

Hi,
It is nice, but as usual with DHTML it's just a trick.
All the logic is in :
http://www.iht.com/scripts/ihtArticle.js
nice clean code neatly commented.
As far as I can see, they simply have the same article three times, scrolled
(or clipped) to a different height.
The second column is scrolled to the height of the first column, and the
third one to twice that.
If the font-size is increased, the text simply moves down a little, in all
three.
If they divide the content-height of column one by the visible height, and
divide that by three, they know how many pages to show.
the next "page" is nothing more than the same three div's scrolled down a
bit more
Nice.

Cheers,
Richard Bennett

mail at richardinfo.com
www.richardinfo.com

Richard Bennett
Independent Software Consultant
Leemputstraat 41
2600 Berchem, Belgium
Phone: + 32(0)475 71 91 84






More information about the thelist mailing list