您的位置:首页 > 其它

SCRIPT鼠标放在图片上才显示色彩 平时是灰色的图片

2006-06-01 13:48 232 查看
<a href="index.aspx"><img id="ibHome" onmouseover="removemask(this)" style="FILTER: gray alpha(opacity=50)"
onmouseout="addmask(this)" src="macnew/ihome.gif" title="进入首页<br>[Beta home]" Border="0"></a>

CODE:
[Copy to clipboard]

<SCRIPT language="JavaScript1.2"><!--
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=30
else
cur.filters.alpha.opacity=60
}

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function addmask(ow)
{
ow.filters.gray.enabled=true;
pWidgets(ow,50,5,5);
//ow.style.filter="gray alpha(opacity=50)";
}
function removemask(ow)
{
ow.filters.gray.enabled=false;
pWidgets(ow,100,5,5);
//ow.style.filter="";
}

var tm;
function addmaskicon(ow,strstat,boxstat)
{
ow.filters.gray.enabled=true;
pWidgets(ow,50,5,5);
boxstat.innerHTML=strstat;
}
function removemaskicon(ow,strstat,boxstat)
{
ow.filters.gray.enabled=false;
pWidgets(ow,100,5,5);
boxstat.innerHTML=strstat;
}
// -->
</SCRIPT>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: