Of course, with CSS2 it is completely possible (although it is not supported by IE):
input.test:before
{
padding: 4px;
content: url(images/your_image.gif);
}
For more info, check out the following links:
If you want something that works in IE as well, you will have to do it with javascript, I'm afraid.
DrJokepu
2009-09-08 10:21:02