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

jQuery plugin to implement accordion secondary menu

This article uses a jQuery plug-in to create an a...

A summary of the reasons why Mysql does not use date field index

Table of contents background explore Summarize ba...

Detailed analysis of SQL execution steps

Detailed analysis of SQL execution steps Let'...

MySQL uses UNIQUE to implement non-duplicate data insertion

SQL UNIQUE constraint The UNIQUE constraint uniqu...

A brief discussion on two methods to solve space-evenly compatibility issues

Since its launch in 2009, flex has been supported...

Vue implements three-level navigation display and hiding

This article example shares the specific code of ...

Introduction to fourteen cases of SQL database

Data Sheet /* Navicat SQLite Data Transfer Source...

Methods for defragmenting and reclaiming space in MySQL tables

Table of contents Causes of MySQL Table Fragmenta...

CSS3 achieves various border effects

Translucent border Result: Implementation code: &...

js uses the reduce method to make your code more elegant

Preface In actual projects, the most common proce...