How do I insert a scrollable textbox?

G

Guest

I am trying to insert a lot of text to one of the pages on my website, and
what i want to do is put it all in a scrollable textbox, with up and down
buttons so that the actual page-length remains the same. It all seemed quite
simple in my mind, but it proved quite a challenge since the form textbox
isn't doing what i want it to do. Any suggestions?

p.s. I am using frontpage 2003
 
K

Kevin Spencer

What kind of textbox are you using 9there are 2 kinds), and what is it doing
that you don't want it to do?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
T

Thomas A. Rowe

Use an IFrame, however this is not a good idea if your site is index by search engines.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

The thing is that i can't manage to turn it into a textbox with a scroll bar
on the side. I don't want a simple table with text in it, but one that
contains the text within a set width and hight, and u can scroll down to view
the information inside it. How do I do that?
 
T

Thomas A. Rowe

Use an IFrame

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

What's an IFrame?


Thomas A. Rowe said:
Use an IFrame

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

An IFrame in a inline frame that you insert on a page, then you can load another page within the
IFrame and allow the content to be scrolled independently of the main page. See FP Help.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
K

Kevin Spencer

Hi Andrew,

One solution is to use a div and set the style height and width, then set
the overflow style to either "auto" or "scroll." The difference is that if
it is "auto" and the text fits inside, it will not have a scroll bar, but if
it is "scroll" it will always have a scroll bar, even if one is not
necessary.

Example:

<div style="width:200px;height:200px;overflow:auto">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Quisque sapien felis, ullamcorper sed, mattis et, tempus dignissim, lorem.
Nulla elementum dignissim orci.
Nulla risus sem, vehicula nec, eleifend sit amet, iaculis at, augue.
Suspendisse nibh.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere
cubilia Curae; Sed tincidunt felis.
Duis rutrum leo ac justo. Ut mollis leo eget velit. Integer justo orci,
cursus id, vestibulum sit amet, molestie id, tortor.
Donec urna nunc, condimentum ut, viverra nec, adipiscing at, dolor.
Integer dolor sem, tempor id, tincidunt id, hendrerit non, ligula. Maecenas
justo.
Pellentesque bibendum turpis at arcu. Nulla facilisi. In non eros.
Suspendisse eu velit.</p>

<p>Vivamus scelerisque semper purus. Curabitur facilisis lacinia dolor.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Vestibulum ultricies. Curabitur velit elit, dignissim quis, sagittis a,
imperdiet et, lorem.
Pellentesque elit augue, rhoncus eget, lobortis a, imperdiet vel, magna.
Fusce egestas.
Donec cursus tristique diam. Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia Curae;
Quisque gravida convallis enim. Cras ut urna in nisl tincidunt egestas.
Etiam sed nunc.</p>
</div>

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
G

Guest

Brilliant! that's exactly what i wanted to do. I knew it was something
simple, but just couldn't figure out what it was. Thanks a bunch Kevin!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top