Featured post
javascript - Ebook in iOS using CSS multi-column (calculate range of text in different column) -
my first question here. correct me if i've done wrong.
i've found source here demonstrate how paginate html using css multi-column. http://groups.google.com/group/leaves-developers/browse_thread/thread/27e4bf5ff3c53113/f137dc01b6d853b7
my question is: how calculate range / location of text in different column (page)?
for example, when changing font size, text in current page jump page. solve this, program should save current text location, , move correct page (column) after reformatting web page.
it useful implementing bookmark function.
i think should done javascript, i'm new javascript.
any suggestions , tips welcomed.
this bit of general question, , hard answer, i'll try point in direction might try.
i have no idea how layout of page might or function, 1 way theoretically checking text node of 'column' whenever change font-size (presuming font size change implimented button click). so, instance, have div w/ id #column_1, whenever clicks button ui element evaluate first several characters of #column_1, search string find text, , load whatever no. of characters have defined 'page' around text , call render method 'turn' page. flow of function might this:
zoomcontrol.click(click event){ //do when click zoom control var text = findtextofcurrentpage() //get first bit of text of current 'page' renderlargertextsize() //re-render 'page' w/ larger text (for user feedback purposes) renderpagewith(text) //render/navigate 'new' page wherein text in variable 'text' can found }
obviously super generic 'idea' of functions/methods might use make happen, think if dug js , jquery sort of thing done relatively easily.
- Get link
- X
- Other Apps
Comments
Post a Comment