English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What is the code that you use to get your text to scroll? I mean, so it doesn't take up the entire page and you want it neat in one little box-thingie or whatever where it scrolls when the text is too long, what code do i use?

2007-03-01 03:20:16 · 9 answers · asked by Anonymous in Computers & Internet Programming & Design

9 answers

That's JavaScript.

2007-03-01 03:26:34 · answer #1 · answered by Runa 7 · 0 0

If you want a scrollbar to appear, I got Best Answer for that

http://answers.yahoo.com/question/index;_ylt=AoO_DI_nj7TSGD_TBIPxyvrsy6IX?qid=20070101115915AAz4CPq&show=7#profile-info-9633bd903aa19f1b1fcf08ad23455380aa

If there is a section of your web page that you would like to have scrollbar(s) for, it is easily accomplished by wrapping that text with

tags. Specifically:

text
more text


supplying values in pixels for X & Y. This will show a scrollbar(s) only if the div's innerHTML (the text) surpasses the dimensions of width and/or height. When specifiying the width (and height), add some additional space for the anticipated scrollbar(s). To force both scrollbars to always appear, replace "auto" with "scroll".

More information may be found at msdn.microsoft.com/library

Note: You may also need to add [ ; display:inline; ] to your div's style section if you want two blocks of text to appear side by side; the default behavior -- display:block; -- will stack the divs vertically.

2007-03-01 12:04:13 · answer #2 · answered by SkewsMe.com 3 · 1 0

What you are looking for is not javascript, it's a marquee tag. I don't believe it's available for netscape, but they may have added it since I last looked. The basic code for one is:

Your Text

The scroll will be the width of the page and be the height of the text.


Now, if you want it wider/smaller, just use the "width" attribute like so:

Your Text


And if you want it taller/shorter, use the "height" attribute:

Your text


You can add a background color with the bgcolor attribute:

Your text


You have a lot of control over these guys. You can change how they look, act, and what direction they scroll in.

For direction:

Your text
Your text
Your text
Your text


And behavior:

Your text
Your text
Your text


You can alter the speed too:

Your text going really fast


You can even put marquees inside of marquees, and get some pretty cool effects...

For a laugh, try this one out:




*




But don't watch too long, it'll make you dizzy!

(For the record, marquees like that are annoying, but fun to watch)

2007-03-01 11:51:47 · answer #3 · answered by babyzcostumeshop 3 · 1 0

Hope I'm answering your question right. If your paragraph is to long you need to add a break which is
to start and a
to stop. This way your sentence's are not long and run into each other. Also to center your sentence in the middle of a page use < Center> to start and to stop. Hope this helps. Good luck: Blueladybug

2007-03-01 11:33:47 · answer #4 · answered by Blueladybug 4 · 0 1

I have found top 100 simplified top and tricks book to be helpful. They have a series of topics. I have the HTML book sometimes the library would have them or local booksellers. I.e. Borders, Barnes and Noble, Waldensbook, etc

2007-03-01 11:31:11 · answer #5 · answered by fourt8cards 2 · 1 0

Scrolling Text Codes Are Usually Called "Marquee Codes" These Are Just Some Different Codes You Can Try. If You Don't Know How To Change The Color Of The Writing Or Anything Feel Free To Email Me.

Right To Left Marquee


TEXT



Left To Right Marquee


TEXT



Alternate Marquee


TEXT



Up Marquee


TEXT



Down Marquee


TEXT



Up/Down Alternate Marquee


TEXT



Zig Zagging Marquee



TEXT



Alternate Zig Zagging Marquee



TEXT

2007-03-02 08:50:38 · answer #6 · answered by yillant 1 · 0 0

Insert the text in to a div.

2007-03-05 02:53:34 · answer #7 · answered by ehossain 2 · 0 0

So far everyone hasn't understood what you wanted. Here is a tutorial on Iframes, which is what you want. You want to place one document into another.

http://www.trans4mind.com/personal_development/HTMLGuide/iframes.htm

http://www.w3schools.com/tags/tag_iframe.asp

http://www.w3.org/TR/html401/present/frames.html
http://www.samisite.com/test-csb2nf/id43.htm

2007-03-01 23:16:35 · answer #8 · answered by DianeD 4 · 0 0

Try this site for great tutorials on everything. http://www.tutorialized.com

2007-03-01 11:45:45 · answer #9 · answered by Guitar man 2 · 1 0

fedest.com, questions and answers