需要一个带有循环文本的选框,鼠标悬停时停止

Need a marquee with loop text and stop on mouseover

本文关键字:鼠标 悬停 文本 循环 一个      更新时间:2023-09-26

我也试过下面的,但它不是一个循环选框。是否有可能循环或任何其他jquery都有循环&鼠标悬停功能?

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

<!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>

您正在寻找LOOP属性吗?也检查这个链接

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