Results 1 to 4 of 4

Thread: Can Mike's DHTML Scroller Be Centered?

  1. #1
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can Mike's DHTML Scroller Be Centered?

    Script: Mike's DHTML Scroller
    Location: http://www.dynamicdrive.com/dynamici...mikescroll.htm

    I am failry new to HTML coding. I would like to have the "message/scroll box" that is generated in Mike's DHTML Scroller always centered on the page. I am not as concerned about the text that is scrolled, as I think this can be handled with a font tag attribute.

    Is this possible?

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Make a 3 cell table, and place the scroller in the middle cell. Set the table so it adapts to page width (i.e 100% width) and it will always stay centered. Then set the table borders to 0 so you can't see them.

    Still with me?

    Merry Christmas
    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How do you place the 'scroller' in the cell?

  4. #4
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the tip on creating a cell.

    I had some trouble and ended up going with two cells. I wanted to center the scroll under an image that was centered. Along with the centering parameters, the left cell's size had to be set to a percentage that put its right end just under the start of the image. In my case this was 25%. The second cell was then set to the remaining amount of percentage, 75% in my case.

    Within Mike's DHTML Scroller code, I had to add the <center>. . .</center> font attributes to the text display statements and change the colors.

    To get all this into the cell, I first created the table and typed the word "test" into the second cell. I then edited the HTML via NotePad and replaced the word "test" with the scroller tool code.

Bookmarks

Posting Permissions

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