With a little JavaScript and CSS you could do this. In this page if you enter text in the field and select it it will change colors.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>New Page 1</title>
<script type="text/javascript">
<!--
function changeColor(oFld) {
oFld.style.color= "#FFFFFF";
oFld.style.backgroundColor
}
//-->
</script>
<style>
<!--
-->
</style>
</head>
<body>
<p><input type="text" name="T1" size="20" onselect="changeColor(this
</body>
</html>
Main Topics
Browse All Topics





by: ZylochPosted on 2007-03-31 at 15:46:29ID: 18830064
I know of no way to do this with CSS. Highlight colors are controlled by the operating system and maybe the browser. You might try changing the color of the font to see if the highlight color changes, or change the background of the text box, but that is not the same thing.