开发者

<marquee> tag, show text immediately

The text now with <marquee> tahg appears on one side only when the other disappear complet开发者_运维问答ely. You need to wait until all the text disappears and only then he come from other side. How to make text disappear soon appear on the other side?

I hope you understand my problems.


Wow the <marquee> tag - not seen that for a while. It has all sorts of cross-browser problems - it doesn't work at all in Firefox. It's not actually in the HTML standard, it was a custom tag introduced by Microsoft.

The problem you describe is the way that it works, and there's no way of customising it. The only thing you could do (and I can't stress how strongly I would recommend not doing this) would be to duplicate the text a few times and put lots of spaces between it. That would simulate the effect you're trying to achieve using only the marquee tag.

However, that should be an absolute last resort. You are almost certainly better off using JavaScript to do this. It's easier to customise, and will work in all browsers.

Here's some customisable JavaScript: http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm or you can use a jQuery plugin like http://remysharp.com/demo/marquee.html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜