View Single Post
  #2 (permalink)  
Old Nov 19th, 2003, 13:14
Nick Nick is offline
Junior Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Not that I know of. The example given uses a (rather nice) set of javascript code to split it in to columns and do the paging. Check out the ihtArtic.js for the main bulk of the code.

From what I understood this is how it worked. It layed out 3 columns. Each column contains all the article text. It then "scrolls" the second so it starts at where the first column stopped. It then "scrolls" the third column down to where the second column stopped.

This is done by, for example, moving the middle DIV column (created on the fly) up to the height of the left column. Because the column is only visible in a fixed position (done by CSS I think), it looks like the the text flows between columns. Infact, it's 3 columns all with the whole article text, just moved up to give the impression of columns. It also takes in to account font size (which can be altered by the user) to line up the lines perfectly. Very clever stuff.