The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Scroll two text scrollboxes via anchors and script?
iphigenia
post Feb 15 2009, 10:48 AM
Post #1





Group: Members
Posts: 1
Joined: 15-February 09
Member No.: 7,813



I am making a page that will have two text scrollboxes side-by-side:

- one with the text of a book
- one with notes explaining difficult parts of that text (for example, definitions for foreign words as they appear in the text)

I'd like to make the notes automatically scroll so that as the user is reading the book's text, the notes that are pertinent to the visible part of the book are showing.
I know I can use anchors to make the notes scroll to the right place if the reader clicks on a linked word in the text, BUT I don't want the reader to be distracted with links/clicking -- I just want the correct notes to match up with the section of the text they apply to, and to keep scrolling as the reader scrolls through the text. So, no clicking on links, please!
I figured this required some sort of scripting, but wasn't sure which -- if it doesn't, I apologize and would appreciate if you could point me in the right direction to ask my question. I'd be happy to explain in more detail if that is needed.
Thanks a lot!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Feb 15 2009, 01:41 PM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE
I am making a page that will have two text scrollboxes side-by-side:


Then why not simply put the text and notes in two columns of a table, which will eliminate space-wasting scrollbars, and work automatically?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 15 2009, 03:03 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,734
Joined: 9-August 06
Member No.: 6



What are the srollboxes? Iframes or created with CSS? I almost added textareas here, but I refrained. biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 6th May 2024 - 03:30 PM