鼠标经过黑白变彩色效果,另外还一个提交验证

<script>
var str='<img id=imgGroup style="filter:Gray()" onmouseover="color(this)" onmouseout="fade(this)" onclick=fixcolor(this) src=http://pages.blueidea.com/articleimg/2003/11/';
for(var i=0;i<7;i++)
document.write(str+(i+20)+"/preview_s01.gif>");
var current=imgGroup[Math.floor(Math.random()*7)];
current.filters.gray.enabled=false;
function color(ob){
current.filters.gray.enabled=true;
ob.filters.gray.enabled=false;
}
function fixcolor(ob){
ob.filters.gray.enabled=false;
current=ob;
}
function fade(ob){
ob.filters.gray.enabled=true;
current.filters.gray.enabled=false;
}
</script>
<form onsubmit="por.value=current.src;alert(por.value);return false;">
<input type=hidden name=por>
<input type=submit>
</form>

原文地址:http://www.corange.cn/archives/2008/01/189.html
原文地址:https://www.cnblogs.com/zerogo/p/1924470.html