How to set the text in the select drop-down menu to scroll left and right

How to set the text in the select drop-down menu to scroll left and right
I want to use the marquee tag to set the font scrolling. The code is written as follows, but it has no effect and the font still does not scroll. How should I write it to achieve this effect?
<html:select property=”w_project_cd[]” value=”<%=prj.toString()%>” onchange=”<%=js.toString()%>” style=”width:260px”>
<logic:notEmpty name=”proj_list”>
<marquee direction=”left” behavior=”scroll” scrollamount=”10″ scrolldelay=”200″> <html:options collection=”proj_list” property=”value” labelProperty=”label”/></marquee>
</logic:notEmpty>
</html:select>
I found a similar example on the Internet, the detailed code is as follows:
HTML code:

Copy code
The code is as follows:

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<script type="text/javascript">
function init(){
var os = document.getElementsByTagName("option");
for(var i=0;i<os.length;i++){
var tx=os[i].innerHTML;
var l=tx.length;
var b=tx.substring(0,1);
var e = tx.substring(1);
os[i].innerHTML=e+b;
}
window.setTimeout(init,1000);
}
window.onload=init;
</script>
</head>
<body>
<select>
<option>A usage</option>
<option>Maybe that's just how life is</option>
<option>Clouds in the sky, water in the bottle</option>
</select>
</body>
</html>

<<:  Some key points of website visual design

>>:  CSS Tutorial: CSS Attribute Media Type

Recommend

Linux uses dual network card bond and screwdriver interface

What is bond NIC bond is a technology that is com...

Implementation of Docker data volume operations

Getting Started with Data Volumes In the previous...

Use of Vue filters and custom instructions

Table of contents Filters 01.What is 02. How to d...

VSCode configuration Git method steps

Git is integrated in vscode, and many operations ...

Solution to EF (Entity Framework) inserting or updating data errors

Error message: Store update, insert, or delete st...

A brief discussion on MySQL event planning tasks

1. Check whether event is enabled show variables ...

How to restore docker container data

The project test environment database data is los...

jQuery implements HTML element hiding and display

Let's imitate Taobao's function of displa...

MySQL optimization query_cache_limit parameter description

query_cache_limit query_cache_limit specifies the...

How to implement insert if none and update if yes in MySql

summary In some scenarios, there may be such a re...

HTML input file control limits the type of uploaded files

Add an input file HTML control to the web page: &...

How to configure Basic Auth login authentication in Nginx

Sometimes we build a file server through nginx, w...