Hey everyone
Just a general question for anyone in the know.
I'm helping a mate set up a site, and we want to put a section that can have scrolling text in it. Anyone know how to set up a scrolling text boxy thing? Were using Dreamweaver, if that helps in any way at all.
I now return you to your regularly scheduled topic.
Making a scrollbox
-
sausage boy
- bono

- Posts: 1074
- Joined: Mon Sep 27, 2004 8:53 pm
- Instruments: Bass, Vocals, Terrible drum machine, even worse harmonica
- Recording Method: Creative Recorder, ModPlug Tracker and Audacity
- Location: South Australia
- Contact:
- john m
- Orwell
- Posts: 819
- Joined: Sat Sep 25, 2004 10:46 am
- Instruments: Drums, guitar, bass, keyboard
- Recording Method: tin cans, string
- Submitting as: Doctor Worm
- Location: ohio
If you mean something like on my site, it's called an iFrame. Pretty easy to set up. The code on my site is:
Throw the iframe tag in whatever table cell you want, then tailor the code attributes to your site's specifics.
Code: Select all
<iframe name="cwindow" style="border:0px solid blue" width="100%" height=412 src="main.html"></iframe>-
sausage boy
- bono

- Posts: 1074
- Joined: Mon Sep 27, 2004 8:53 pm
- Instruments: Bass, Vocals, Terrible drum machine, even worse harmonica
- Recording Method: Creative Recorder, ModPlug Tracker and Audacity
- Location: South Australia
- Contact:
- fluffy
- Eisenhower
- Posts: 11267
- Joined: Sat Sep 25, 2004 10:56 am
- Instruments: sometimes
- Recording Method: Logic Pro X
- Submitting as: Sockpuppet
- Pronouns: she/they
- Location: Seattle-ish
- Contact:
Another way to do it which is more accessible to older browsers and the visually-impaired and so on, and which doesn't require an external page dependency:
The 'overflow:auto' CSS attribute just means 'if the content is too big to fit in this container, put a scrollbar on the parent.' Older browsers will just size the container to fit the content. Really old browsers will just display the content inline.
Code: Select all
<div style="overflow:auto; width: 640px; height: 480px;">stuff goes in here </div>
-
sausage boy
- bono

- Posts: 1074
- Joined: Mon Sep 27, 2004 8:53 pm
- Instruments: Bass, Vocals, Terrible drum machine, even worse harmonica
- Recording Method: Creative Recorder, ModPlug Tracker and Audacity
- Location: South Australia
- Contact: