View Full Version : A scrolling problem

07-26-2010, 04:03 AM
I need a marquee code that displays images in a continuous vertical cycle.

Old Pedant
07-27-2010, 02:58 AM
Shouldn't be hard to create.

Have you had any luck?

07-27-2010, 04:39 AM
This code starts near the center of the screen. But it is not what I need because it is not continuous; the image blanks out at the top of the screen then it repeats.

<!-- Header -->
<!-- BEGIN body -->
<!-- BEGIN Header -->
<!-- END Header -->
<!-- BEGIN Moving text -->
<marquee direction="up" scrolldelay="400">

<!-- END Moving text -->
<!-- END Header -->

Old Pedant
07-27-2010, 08:20 AM
Ummm...and you wanted a whole series of images, anyway. Right??

How will you guarantee that you have enough images to fill the height of the screen??

Or would you settle for filling the height of a fixed-height <div>?

07-27-2010, 08:42 PM
Please take a look at this:


I would like to scroll the images of these baseball cards starting from the bottom of the screen.

Old Pedant
07-27-2010, 09:15 PM
Well, the simplest thing to do would be:

<marquee direction="up" scrolldelay="20" scrollamount="1" height="100%" truespeed="true"
><IMG src="t202a.jpg" width=722 height=5666
/><IMG src="t202a.jpg" width=722 height=5666

But it doesn't start with the image showing. Is that okay?

It's also not guaranteed to work in all browsers. (MARQUEE is an MSIE invention.)

It does work fine in MSIE and FireFox, at least.

07-28-2010, 03:23 AM
Works great! Is there a way to center the scroll?

Old Pedant
07-28-2010, 09:27 AM
You mean middle of the page?

Just use CSS.

Or just use <center>, though that's considered tacky nowadays.