Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Change DropDown Text on MouseMove

0.00/5 (No votes)
28 Nov 2004 1  
Change text on mouse move in dropdown.

Introduction

This article shows how to change the text in a dropdown on mouse move, in a plain HTML.

Using the code

There is no JavaScript nor any coding need to be done, just a simple style sheet will solve the problem. Below is the source code for the style sheet. Just copy and paste this in your stylesheet, and download the image file and point it to the right folder.

<html>
<head>
<style>
SELECT
{
    LIST-STYLE: lower-roman url(bullet2.gif) outside;
}

</style>
</head>
<body>
    <select>
        <option>Test1</option>
        <option>Test2</option>
        <option>Test3</option>
        <option>Test4</option>
    </select>
</body>
</html>

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here