需要带有循环文本的选取框并在鼠标悬停时停止

时间:2016-10-28 04:19:44

标签: javascript jquery html marquee

我也试过以下内容,但它不是一个循环的选框。是否可以循环或任何其他jquery与loop和amp;鼠标悬停功能?

<marquee behavior="scroll" align="middle" direction="left" scrollamount="4" onmouseover="this.stop()" onmouseout="this.start()">Scrolling marquee</marquee

2 个答案:

答案 0 :(得分:0)

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>My Example</title>
</head>
<body>

<marquee behavior="scroll" align="middle" scrollamount="4" direction="left" onmouseover="this.stop();" onmouseout="this.start();">
Scrolling marquee
</marquee>

</body>
</html>

答案 1 :(得分:0)

您在寻找LOOP属性吗?另请查看此link

<marquee LOOP=3 behavior="scroll" align="middle" direction="left" scrollamount="4" onmouseover="this.stop()" onmouseout="this.start()">Scrolling marquee</marquee>