40

When one marquee leaves the screen then after a short time gap it enters from another side. Is there any way to reduce this time?

Pops
  • 28,257
  • 34
  • 127
  • 149
aaaaa
  • 401
  • 1
  • 4
  • 3
  • 6
    Please be aware that the marquee tag was never standard HTML and is deprecated. – Orbling Nov 19 '10 at 17:10
  • 3
    @Orbling - Marquee is not deprecated. It's impossible to deprecate something that wasn't once standard. – Alohci Nov 19 '10 at 19:33
  • 2
    @Alohci It's use is deprecated within the browsers that support it, the standard obviously does not deprecate it - as it is not part of the standard to begin with. – Orbling Nov 19 '10 at 19:34

12 Answers12

47

<marquee behavior=scroll direction="left" scrollamount="5">Your message here</marquee>

scrollamount controls the speed of text: higher the value higher is the scrolling speed

Zze
  • 15,599
  • 9
  • 68
  • 98
Ashish Anand
  • 3,332
  • 6
  • 30
  • 44
31

we can control the scrolling speed by using the scrollamount attribute,

Example:

<marquee scrollamount="30">scrolling fast</marquee>
<marquee scrollamount="2">scrolling slow</marquee>

note:if you specify the minimum number, the scrolling speed will be reduce vice versa

msd94
  • 29
  • 5
sakthideveloper
  • 311
  • 3
  • 2
  • this is perfectly working for me , as i used before scrolldelay that is used for speed delay in miliseconds!!!! Thanks – Nadeem Bhat Oct 25 '18 at 12:01
9

This attribute takes the time in milliseconds.

Delay : 100 Milliseconds

<marquee scrolldelay="100">Scrolling text</marquee>

Delay : 400 Milliseconds

<marquee scrolldelay="400">Scrolling text</marquee>
Abu Sufian
  • 331
  • 3
  • 4
7

There isn't specifically an attribute to control that. Marquee isn't a highly reliable tag anyways. You may want to consider using jQuery and the .animate() function. If you are interested in pursuing that avenue and need code for it, just let me know.

James Thompson
  • 1,047
  • 6
  • 16
  • There isn't an attribute to control that? Then what was the other posted answer about? Hmm... – jcolebrand Nov 19 '10 at 17:10
  • 2
    He's right, technically: `scrolldelay` slows the entire animation, not specifically the delay between when the text scrolls off one edge and reappears on the other. See the examples on that very webpage. – Dan J Nov 19 '10 at 17:13
  • @jcolebrand this **is**...was the answer ;) – MattAllegro May 15 '18 at 10:56
5

You can change the speed of marquee tag using scrollamount attribute.

It accepts integer values 6 being the default speed, so any value lower then 6 will slow down the marquee effect.

Example :

<marquee scrollamount=4>Scrolling text</marquee>

Read more : http://code2care.org/pages/marquee-tag-scrollamount/

http://www.htmlcodetutorial.com/_MARQUEE_SCROLLAMOUNT.html

P.S : Avoid using marquee!

AcousticHead
  • 91
  • 2
  • 2
  • Marquee is really easy to use, but too blinking, even in low speed. What's good alternative to marquee? – newman May 07 '15 at 14:30
4

You can Change the speed by adding scrolldelay

<marquee style="font-family: lato; color: #FFFFFF" bgcolor="#00224f" scrolldelay="400">Now the Speed is Delay to 400 Milliseconds</marquee>
Uday Kumar
  • 54
  • 3
4

In Order to increase speed of your Marquee text you just need to add like this in your code below:

<marquee scrollamount="Integer number">scrolling fast</marquee>
Nadeem Bhat
  • 982
  • 6
  • 10
3

scrolldelay="number"

John Giotta
  • 15,242
  • 6
  • 42
  • 77
  • See also Google or any of the myriad returns, such as: http://www.htmlcodetutorial.com/_MARQUEE.html – jcolebrand Nov 19 '10 at 17:07
  • that will just slow it down, not reduce the time between 'refreshes' – James Thompson Nov 19 '10 at 17:10
  • 3
    Also consider Googling **"don't use marquee tag"** for the many good reasons, understood since the late 'Nineties, why you may wish to avoid using this particular feature of HTML... – Dan J Nov 19 '10 at 17:12
2

To increase scroll speed of text use attribute

scrollamount
OR
scrolldelay

in the 'marquee' tag. place any integer value which represent how fast you need your text to move

sad
  • 21
  • 2
1

I just do:

<marquee scrollamount="A number">Text here</marquee>
0
         <body>
         <marquee direction="left" behavior=scroll scrollamount="2">This is basic example of marquee</marquee>
         <marquee direction="up">The direction of text will be from bottom to top.</marquee>
         </body>

use scrollamount to control speed..

-1

On HTML5 the scrollamount and the scrolldelay attributes do not work. They are depricated attributes.

Person
  • 11