Click here to Skip to main content
15,880,796 members
Articles / Web Development / HTML
Article

Change DropDown Text on MouseMove

Rate me:
Please Sign up or sign in to vote.
2.57/5 (9 votes)
28 Nov 2004 91.1K   18   18
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
<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


Written By
Web Developer
United States United States
I'm a .Net Programmer/Web Developer, mostly working on ASP.Net C# and VB.Net,Oracle,SQL server 2000.

Comments and Discussions

 
Generalit is superb! Pin
Ramesh Ramalingam10-Aug-06 1:17
Ramesh Ramalingam10-Aug-06 1:17 
GeneralAhaaah Pin
quitchat30-Mar-06 2:39
quitchat30-Mar-06 2:39 
GeneralClever Pin
Simon Capewell25-Nov-04 23:26
Simon Capewell25-Nov-04 23:26 
GeneralRe: Clever Pin
Jay Kulaindevelu26-Nov-04 13:32
Jay Kulaindevelu26-Nov-04 13:32 
GeneralRe: Clever Pin
Kenny Lu24-Oct-07 17:02
Kenny Lu24-Oct-07 17:02 
QuestionMouseMove? Pin
jdevons24-Nov-04 4:22
jdevons24-Nov-04 4:22 
AnswerRe: MouseMove? Pin
attackweasel24-Nov-04 5:27
attackweasel24-Nov-04 5:27 
GeneralRe: MouseMove? Pin
Jay Kulaindevelu24-Nov-04 6:24
Jay Kulaindevelu24-Nov-04 6:24 
GeneralRe: MouseMove? Pin
WoutL24-Nov-04 11:19
WoutL24-Nov-04 11:19 
GeneralRe: MouseMove? Pin
Jay Kulaindevelu25-Nov-04 2:26
Jay Kulaindevelu25-Nov-04 2:26 
GeneralRe: MouseMove? Pin
WoutL26-Nov-04 0:37
WoutL26-Nov-04 0:37 
GeneralRe: MouseMove? Pin
Jay Kulaindevelu26-Nov-04 13:33
Jay Kulaindevelu26-Nov-04 13:33 
AnswerRe: MouseMove? Pin
Jay Kulaindevelu24-Nov-04 6:21
Jay Kulaindevelu24-Nov-04 6:21 
GeneralRe: MouseMove? Pin
attackweasel24-Nov-04 9:58
attackweasel24-Nov-04 9:58 
I used my own image and this seems to do nothing but alter the style of the dropdown. Why is your image important if it is not even used? You're not pawning a jpeg virus off are you? Laugh | :laugh:
GeneralRe: MouseMove? Pin
Jay Kulaindevelu25-Nov-04 2:23
Jay Kulaindevelu25-Nov-04 2:23 
GeneralRe: MouseMove? Pin
Jay Kulaindevelu25-Nov-04 2:53
Jay Kulaindevelu25-Nov-04 2:53 
GeneralRe: MouseMove? Pin
attackweasel25-Nov-04 3:56
attackweasel25-Nov-04 3:56 
GeneralRe: MouseMove? Pin
Jay Kulaindevelu25-Nov-04 4:48
Jay Kulaindevelu25-Nov-04 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.