× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Can you ignore IE6? (please, please... everyone should ignore ie6 at
this point :-) The highlighting should be done w/CSS. If you want all
input types then a style of input:hover {background-color:yellow;} at
the top of your page. No need to handle mouseover/mouseout at all. IE6
doesn't handle :hover psuedo-element on anything other than <a> tags.
But IE6 sucks. :-)

For adding the click toggle, if you're using prototype, or jQuery, or
some other JS framework (you should be) it's a oneliner
OnClick="$(this).toggleClassName('Selected');"

Take a look at http://w3.techsoftwareinc.com/highlightfield.htm to see
it work. I used a class on the input boxes to allow me to pick out only
specific boxes.

If you view-source, you'll see:

----
<html xmlns="http://www.w3.org/1999/xhtml"; >
<head>
<title>Highlight</title>
<script src="/include/Prototype.js"></script>
<style type="text/css">
.CanHighlight:hover {background-color: yellow;}
.Selected {background-color: yellow;}
</style>
</head>
<body>

<form>
<input type="text" class="CanHighlight"
OnClick="$(this).toggleClassName('Selected');" />
</form>

</body>
</html>
----

-Walden

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.