javascript - endless marquee - Stack Overflow

Ok I have this html<marquee scrollamount="6"><a href="javascript:void(0)"

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.

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.

Share Improve this question asked Feb 23, 2010 at 4:40 Reigel GallardeReigel Gallarde 65.3k21 gold badges125 silver badges142 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 2

Use jquery + marquee plugin like http://remysharp./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 pared 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745424585a4627115.html

相关推荐

  • javascript - endless marquee - Stack Overflow

    Ok I have this html<marquee scrollamount="6"><a href="javascript:void(0)"

    6小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信