问:

Hi,

I made a marquee to show news moving horizontaly from right to left and have a width 80%.It is working fine in IE browser but not in Firefox.In Firefox it continue after the bound I expect and appear throw the next image where it should disappear.Could any one help me to solve the problem?. 


答:

Hi TheEagle
 

I have read the thread carefully. As far as I can see, some version of Firefox don’t support the <marqueue>, you can try the following code, it works on Mozilla Firefox 2.0


Marquee in Firefox<script type="text/javascript">
Marquee in Firefox
<!--
Marquee in Firefoxdocument.write(
'<marquee behavior="scroll" onmouseout=start(); onmouseover=stop(); direction="left" 
Marquee in Firefox
Marquee in Firefoxscrollamount="8" width="30%">
');
Marquee in Firefoxdocument.write(
'I made a marquee to show news moving horizontaly from right to left and have a width 80%');
Marquee in Firefoxdocument.write(
'</marquee>');
Marquee in Firefox
-->
Marquee in Firefox
</script>

 

Another way to show marqueue effect is using JavaScript, to make a DIV run like a marqueue. But it is not recommend, because of its complex JavaScript code.


You can try the code from http://bbs.div-css.com/job.php?action=download&pid=tpc&tid=184&aid=57
  

Marquee in Firefox<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 



Hope this helps!


 
If I’ve misunderstood your problem, feel free to reply.
 
Thanks.

相关文章: