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
What is bond NIC bond is a technology that is com...
Getting Started with Data Volumes In the previous...
Table of contents Filters 01.What is 02. How to d...
Git is integrated in vscode, and many operations ...
Error message: Store update, insert, or delete st...
1. Check whether event is enabled show variables ...
The project test environment database data is los...
The installation of MySQL 5.7 on Ubuntu 1804 is i...
Let's imitate Taobao's function of displa...
Table of contents 1. Understand the basics 2. Con...
This article shares the installation and configur...
query_cache_limit query_cache_limit specifies the...
summary In some scenarios, there may be such a re...
Add an input file HTML control to the web page: &...
Sometimes we build a file server through nginx, w...