#32006/4/17 18:36:00
可以用如下的JAVA函数实现这种功能:
<script language='javascript'>
function over(o)
{
o.style.filter='none';
}
function out(o)
{
o.style.filter='alpha(opacity=50)';
}
function clk(s)
{
opener.document.getElementById('facewidth').value = "";
opener.document.getElementById('faceheight').value = "";
opener.document.getElementById('face').value = s;
window.close();
}
</script>
调用代码为:
<img style='filter:alpha(opacity=50)' src='userface/1.gif' onmouseover='over(this)' onmouseout='out(this)' onclick="clk('userface/1.gif')">