Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

endless marquee

Ok I have this html

        <marquee scrollamount="6">
            <a href="javascript:void(0)" ><img src="images/banner/03.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/04.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/05.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/06.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/07.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/03.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/04.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/05.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/06.gif" /></a>
            <a href="javascript:void(0)" ><img src="images/banner/07.gif" /></a>
        </marquee>

this marque moves my images from right to left.

my question is, is there a way to know if the element is hidden already?

I'm planning to get the element that goes out of view then append it as last element of <marquee>. I want to get an endless marquee. Please help me, I'm stuck.

like image 441
Reigel Avatar asked Feb 23 '10 04:02

Reigel


People also ask

How do you make a marquee infinite loop?

The Marquee loop attribute in HTML is used to define the number of time marquee should loop. The default value of loop is INFINITE. Note: This attribute is depreciated from HTML 5.

What is marquee behavior in HTML?

The Marquee behavior attribute in HTML is used to set the behavior of scrolling. The default value is scroll. Syntax: <marquee behavior=slide > Note: This attribute is depreciated from HTML 5.

How do I scroll text without marquee in HTML?

You can use the :hover selector with the animation-play-state property to stop the scrolling of the text when hovered. Set the "paused" value for the animation-play-state .


1 Answers

Use jquery + marquee plugin like http://remysharp.com/2008/09/10/the-silky-smooth-marquee/

<marquee> tag is deprecated:

The marquee tag is a non-standard HTML element which causes text to scroll up, down, left or right automatically. The tag was first introduced in early versions of Microsoft's Internet Explorer, and was compared to Netscape's blink element, as a proprietary non-standard extension to the HTML standard with usability problems. It is deprecated by the W3C and not advised by them for use in any HTML documents.

like image 121
Andrew Kolesnikov Avatar answered Sep 28 '22 08:09

Andrew Kolesnikov