Making a scrollbox

Links and other hanky panky that doesn't have to do with anything in particular.
Post Reply
sausage boy
bono
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:

Making a scrollbox

Post by sausage boy »

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.
User avatar
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

Post by john m »

If you mean something like on my site, it's called an iFrame. Pretty easy to set up. The code on my site is:

Code: Select all

<iframe name="cwindow" style="border:0px solid blue" width="100%" height=412 src="main.html"></iframe>
Throw the iframe tag in whatever table cell you want, then tailor the code attributes to your site's specifics.
sausage boy
bono
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:

Post by sausage boy »

rock!

I'll give that a go.
User avatar
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:

Post by fluffy »

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:

Code: Select all

<div style="overflow:auto; width: 640px; height: 480px;">stuff goes in here </div>
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.
sausage boy
bono
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:

Post by sausage boy »

Thanks Fluffy.
Post Reply