日期:2014-05-17  浏览次数:20660 次

如何把checkbox的勾染色
就像这里的CHECKBOX的勾染成红色了
http://shanghai.koubei.com/fang/detail-rent-re34f6a58b2784c49add89a12967ca7c7.html


------解决方案--------------------
哥,那是图片啊!哪是什么checkbox……
------解决方案--------------------
http://image.koubei.com/images/fang/xuanze-on.gif

就是此图~``

用程序来判断取的是打色的图片还是不打勾的图片的……
------解决方案--------------------
<STYLE>
SPAN.ccc {font-size:12px;line-height:16px;margin-top:-10px;}
</STYLE>
<input type=checkbox id=checkbox1 style= "position:absolute;visibility:hidden " name=name>
<script language=javascript>
function switchimg(idname)
{
document.all(idname).checked=!document.all(idname).checked
event.srcElement.src=document.all(idname).checked? "http://image.koubei.com/images/fang/xuanze-on.gif ": "http://image.koubei.com/images/fang/xuanze-off.gif "
}
</script>
<img src=http://image.koubei.com/images/fang/xuanze-on.gif onclick= "switchimg( 'checkbox1 ') "> <span class=ccc> 111111 </span> <br>
<img src=http://image.koubei.com/images/fang/xuanze-on.gif onclick= "switchimg( 'checkbox1 ') "> <span class=ccc> 111111 </span> <br>
<img src=http://image.koubei.com/images/fang/xuanze-on.gif onclick= "switchimg( 'checkbox1 ') "> <span class=ccc> 111111 </span> <br>
<img src=http://image.koubei.com/images/fang/xuanze-on.gif onclick= "switchimg( 'checkbox1 ') "> <span class=ccc> 111111 </span> <br>
<img src=http://image.koubei.com/images/fang/xuanze-on.gif onclick= "switchimg( 'checkbox1 ') "> <span class=ccc> 111111 </span> <br>