![]() |
|
![]() | ||
|
Subject:
Javascript Text Scroller for web page
Category: Computers > Internet Asked by: reefguy2-ga List Price: $20.00 |
Posted:
20 Mar 2004 00:01 PST
Expires: 01 Apr 2004 21:42 PST Question ID: 318571 |
Searched up and down for this. Below are the requirements Inside a table cell on a web page ie <td> I have a background image that is 23 pixels high, inside this cell I want to put a scroller that displays text, right to left. I have tried many styles ie <Marquee> tag with no avail. My background image always gets repeated below the text. The size of the marquee makes the cell larger than 23 pixels. I would like a script that would allow me to place a scrolling text that does not change the cell itself. The best way to describe my problem is: I have a black background; there is a white line at the top and bottom of a 23 pixel high image. When I try to put the marquee in it, my background image ends up putting the top white line at the bottom again. Now I have three lines instead of two. I would like to put scrolling text in a cell without altering the size of the cell. Text size and color is a must. It is also necessary to be able to set the width to a percentage and to link the text to scroll to an external text file. |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Javascript Text Scroller for web page
From: rerdavies-ga on 30 Mar 2004 22:22 PST |
Things to try: - Have you set the margins and cellpadding to zero? - Try setting the font size of the TD, or eliminating whitespace between tags. The size may be bumped up by the display of spaces in the TD font. Avoid this by keeping >'s adjacent with <'s. Alternately, add: <td style="font-size: 1px"> If all else fails, try something like this (note how leading and trailing whitespace is avoided): <td style="height: 23px; margin: 0px;" background="..." ><div style="height: 23px; width: 100%; overflow: hidden;" ><yourstuffhere ></div ></td> |
Subject:
Re: Javascript Text Scroller for web page
From: reefguy2-ga on 01 Apr 2004 21:42 PST |
Thank You for the tip. I did not realize there was a overflow: hidden tag you could apply within a <td> tag. Thanks for the tip |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |