Home >Web Front-end >HTML Tutorial >Please give me some advice about marquee's error when moving the mouse in and out_html/css_WEB-ITnose

Please give me some advice about marquee's error when moving the mouse in and out_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:341153browse

If the question code and error message are posted, please give me some guidance!

<div id="link">		<img src="img/link.jpg" height="100px" width="100px">		<marquee scrollAmount=2 scrollDelay=0 behavior=alternate width=595 height=70 onMouseOver="this.stop()" onMouseOut="this.start()">		<img height=35 src="img/sinaLogo.png" width=140 border=0 href="baidu.com">		<img height=35 src="img/sinaLogo.png" width=140 border=0>		<img height=35 src="img/sinaLogo.png" width=140 border=0>		<img height=35 src="img/sinaLogo.png" width=140 border=0>		<img height=35 src="img/sinaLogo.png" width=140 border=0>		<img height=35 src="img/sinaLogo.png" width=140 border=0>		<img height=35 src="img/sinaLogo.png" width=140 border=0>		<img height=35 src="img/sinaLogo.png" width=140 border=0>		</marquee>		<span style="color:#999;font-size:12px;">Copyright2015 <a href="#">caipiaotj.com<a/> All Rights Reserved</span>	</div>


An error occurred when running!




This is the declaration of html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>


Reply to discussion (solution)



The picture was erased and the code was pasted.



The picture was erased and the code was pasted.





Off topic

<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

No mistake.

<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

No mistake.





I posted your code and tried it, and the same error occurred when the mouse was moved in or out. How is your HTML declared? Post it and see.

<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

No problem.



<marquee  behavior="scroll" direction="left" height="70" width="595" loop="-1" scrollamount="2" scrolldelay="0" onMouseOut="this.start()" onMouseOver="this.stop()">

No problem Ah.








Found the reason: the browser kernel does not support it! It is not recommended to use this container

It has nothing to do with the declaration,
please update your browser quickly.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn