Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    72
    Thanks
    8
    Thanked 0 Times in 0 Posts

    A scrolling problem

    I need a marquee code that displays images in a continuous vertical cycle.
    Last edited by jerrysp; 07-26-2010 at 08:10 PM.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,561
    Thanks
    80
    Thanked 4,495 Times in 4,459 Posts
    Shouldn't be hard to create.

    Have you had any luck?
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    72
    Thanks
    8
    Thanked 0 Times in 0 Posts
    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">

    image</marquee>
    <!-- END Moving text -->
    <!-- END Header -->

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,561
    Thanks
    80
    Thanked 4,495 Times in 4,459 Posts
    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>?
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    New Coder
    Join Date
    Jul 2005
    Posts
    72
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Please take a look at this:

    http://home.roadrunner.com/~jspillman/at202.htm

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

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,561
    Thanks
    80
    Thanked 4,495 Times in 4,459 Posts
    Well, the simplest thing to do would be:
    Code:
    <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
    /></marquee>
    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.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #7
    New Coder
    Join Date
    Jul 2005
    Posts
    72
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Works great! Is there a way to center the scroll?

  • #8
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,561
    Thanks
    80
    Thanked 4,495 Times in 4,459 Posts
    You mean middle of the page?

    Just use CSS.

    Or just use <center>, though that's considered tacky nowadays.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    jerrysp (07-29-2010)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •