PDA

View Full Version : Is this possible?


Rox
08-10-2002, 03:08 AM
I don't think there is a way to do this, but I'm going to go ahead and ask anyway.

Using HTML, is there a way to make a scrolling text box? Not the kind that the visitor of the page can type into, one that has text written that you can customize, changing height, width, color, etc.

For example, can I put this in a scrolling text box? :

Hey Everybody!

I am trying to make a scrolling textbox.

Visit my website (http://www.roxworld.net/) often
to see if I ever figure it out.


This way it will scroll in a text box, but you can still click the link and see the italics.

gwartheg
08-10-2002, 10:05 PM
I doubt what you're thinking of can be done without a java applet or something similar. A quick google search (http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=scrolling+text+java+applet&btnG=Google+Search) yielded lots of pre-written applets, but of course you'd prefer to write one yourself :biggrin:

Rox
08-11-2002, 12:53 PM
I already searched the net. I think you're right, it can't be done in HTML. Oh well. It just means I'll HAVE to learn java. Which I'm going to anyway!

Nafae
08-11-2002, 01:05 PM
I believe you can do that with javascript, I am trying to remember the name of a good site with tons of scripts like this.

EDIT: It was in the HTML resources thread. Always be sure and check in our resource threads if you have a question :) http://www.dynamicdrive.com/

That may have what you need. If not, java may in fact be the best route to take.

agermain
08-15-2002, 06:27 PM
Try this:

<div style="overflow: auto; width: 600px; height: 30px;">
Hey Everybody!

I am trying to make a scrolling textbox.

Visit my website (http://www.roxworld.net/) often
to see if I ever figure it out.
</div>

If you want to get more advanced with it you can -- try different settings with the width: and height: fields, or you can add a border around it -- go to webmonkey.com and look for CSS tutorials if you want more information on this kinda stuff. This technique should work in most CSS-enabled browsers.

EDIT: Oops. When you said "scrolling" I thought you meant "has scrollbars" -- which the above example does -- rather than "moves." The only way I can think of to get it to move is with javascript, as the other folks mentioned -- though this might be another hint?

Rox
08-18-2002, 02:17 PM
You're right, I'm looking for a way to make text itself scroll using HTML.

Heywood
09-16-2002, 11:07 PM
Hi Rox. SUp.

The only thing I know of that is close, that is html, is the old and annoying <marquee> tag. other than that, go with Javascript.


something like this:


<HTML>
<script language="javascript">
<!-- Ticker Tape in Java Script .. CC by me
//-- for more info about CC, see

//http://cyber.law.harvard.edu/cc/cc.htmlvar tickertapeform
tt_speed=350
tt_len=35
tt_space=" "
tt_tid = 0;
tt_message="."
tt_c= -tt_len;

function move() {
cend=Math.min(tt_c+tt_len,tt_message.length)
if (tt_c <0)
cstart=0;
else
cstart=tt_c;
if (tt_c < 0)
tt_f.scroll.value=tt_space.substring(0,-tt_c) + tt_message.substring(cstart,cend)
else
tt_f.scroll.value=tt_message.substring(cstart,cend)
tt_c = tt_c +1;
if (tt_c == tt_message.length ) tt_c = -tt_len;
tt_tid=window.setTimeout("move()",tt_speed);
}

function tt_start(x) {
tt_f=x
tt_tid=window.setTimeout("move()",tt_speed);
}

function tt_cleartid() {
window.clearTimeout(tt_tid);
}

// for some reason on some pages this crashes netscape
function ticker(m,l,s)
{
tt_message=m
tt_len=l
tt_speed=s
document.write('<FORM name=tickertapeform><input name=scroll size=')
document.write(tt_len)
document.write(' value=""></FORM>')
tt_start(document.tickertapeform);
}

// for some reason on some pages this crashes netscape
function ticker(m)
{
tt_message=m
tt_len=35
tt_speed=250
document.write('<FORM name=tickertapeform><input name=scroll size=35></FORM>');
tt_start(document.tickertapeform);
}
// end-->
</script>
</html>

KriptiK[NervE]
10-13-2002, 01:14 AM
Sounds like something I would do in Flash MX personally. Do you know flash? If so, in MX, Scrollers are not hard whatsoever....

jamessan
10-13-2002, 01:36 AM
Yup. Marquee'll do exactly what you want. Something like this:<marquee scrollAmount=3 direction=up width=150 height=150>Blah</marquee>

gish
10-13-2002, 01:48 AM
try DHTML

http://www.dynamicdrive.com/
do a search for scrolling text..you'll find what you want

Rox
10-20-2002, 01:18 AM
Thanks guys for all your help, I will look into DHTML (thanks gish).

Heywood, the marquees are annoying!!! Anyway, I was looking for something that scrolls up and down...check out thispicture (http://www.roxworld.net/scrollingtextbox.bmp) .

Sorry it took me so long to respond!

Rox
10-23-2002, 12:43 PM
sorry, I didn't read all the posts, my screen's resolution got fucked with (thanks to my lovely boyfriend) and I couldn't see them all, but now I have and I will try everything y'all mentioned. For some reason I only read what Gish and most of what Heywood said but now I read it all.