Interesting. I got it working *sometimes* in IE, using the original blank.gif (the one called blank_old.gif) and a lot of mucking around. In the end the html file looked like:
Code:
<html>
<head>
<style type="text/css">
img {
behavior: url(pngbehavior.htc);
}
</style>
<script src="colorpicker.js" type="text/javascript"></script>
<script type="text/javascript">
function init(){
var inp1 = document.getElementById('input1');
var inp2 = document.getElementById('input2');
if(inp1) attachColorPicker(inp1);
if(inp2) attachColorPicker(inp2);
}
window.onload = init;
</script>
</head>
<body>
<input id="input1" /><br /><br />
<input id="input2" />
</body>
</html>
There are 2 versions of pngbehavior.htc floating around. I ended up having some luck with the 1.5kb one as opposed to 3.5kb.
Sometimes, when you click on a text box, you get a white bar instead of the picker. I dunno why it does that. Proceed at your own risk
Bookmarks