Cat Laugel wrote:
Hello,
I am redesigning my website and would like to have the text scroll within
the webpage without the page itself scrolling.... if you understand what I
mean... ;-)
I want a very sleek look and would like to use little arrows that people
could press to see more of the text rather than have a very long page....
I know, this used to be all the rage a couple years ago. But sooner or
later even the die-hard DHTML freaks realized it's not such a good idea;
your visitors have to scroll and scroll and scroll and scroll and scroll
forever just to read a couple lines of text. It might look neat, but
it's just not practical.
But if you insist, here's a NOT RECOMMENDED example, complete with the
usual non-standard scrollbar CSS properties:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head><title>A scrolling nightmare</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
body {background-color:black;}
div {position:absolute;top:20%; left:30%; height:100px; width:300px;
overflow:auto; color:white;}
/* some non-standard scrollbar values */
div {
scrollbar-3dlight-color:#eeeeee;
scrollbar-arrow-color:black;
scrollbar-base-color:black;
scrollbar-darkshadow-color:#eeeeee;
scrollbar-face-color:black;
scrollbar-highlight-color:#eeeeee;
scrollbar-shadow-color:black}
</style>
</head>
<body>
<div>
<p>I hate my visitors, that's why I make them scroll and scroll and
scroll</p>
<p>Epsum factorial non deposit quid pro quo hic escorol. Olypian
quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus
carborundum e pluribus unum. Defacto lingo est igpay atinlay. Marquee
selectus non provisio incongruous feline nolo contendre. Gratuitous
octopus niacin, sodium glutimate. Quote meon an estimate et non
interruptus stadium. </p>
<p>I hate my visitors, that's why I make them scroll and scroll and
scroll</p>
<p>Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex
librus hup hey ad infinitum. Non sequitur condominium facile et geranium
incognito. Epsum factorial non deposit quid pro quo hic escorol. Marquee
selectus non provisio incongruous feline nolo contendre Olypian quarrels
et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum e
pluribus unum.
</p>
<p>I hate my visitors, that's why I make them scroll and scroll and
scroll</p>
<p>
Defacto lingo est igpay atinlay. Marquee selectus non provisio
incongruous feline nolo contendre. Gratuitous octopus niacin, sodium
glutimate</p>
</div>
</body>
</html>
Well, at least the HTML validates. Happy scrolling ;-)
Matthias