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>
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>
相关文章推荐
- SCRIPT鼠标放在图片上才显示色彩 平时是灰色的图片
- (源码实例)通过层DIV实现,当鼠标放在链接上面,显示图片及文字
- 鼠标放在图片上,跟随鼠标显示大图,图片提示
- 鼠标放在图片上显示大图的JS代码
- 鼠标放在图片上显示大图的JS代码
- [转]jquery 鼠标放在图片上显示图片的放大镜效果jqzoom_ev-2.3
- 鼠标放在图片上在另外层显示图片及图片信息
- 鼠标放在图片上显示大图
- 鼠标放在图片上 显示提示的文字
- 鼠标放在一个连接上,会显示图片(类似tooltip)
- 鼠标放在一个连接上,会显示图片(类似tooltip)
- 鼠标放在小图片上显示大图标
- 鼠标放在一个连接上,会显示图片(类似tooltip)
- (源码实例)通过层DIV实现,当鼠标放在链接上面,显示图片及文字
- 鼠标放在图片上显示图片的放大镜效果jqzoom_ev-2.3
- (源码实例)通过层DIV实现,当鼠标放在链接上面,显示图片及文字
- 鼠标放在图片上面显示图片放大效果 (转)
- 鼠标放在小图片上显示大图标
- 鼠标放在图片上面显示图片放大效果
- 鼠标放在一个连接上,会显示图片(类似tooltip)