| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 683 人关注过本帖
标题:要的效果反了````
只看楼主 加入收藏
baiqie
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2007-1-19
收藏
 问题点数:0 回复次数:3 
要的效果反了````
<IMG
onmouseover=nereidFade(this,100,10,7)
style="FILTER: alpha(opacity=0)"
onmouseout=nereidFade(this,01,70,5) height=35
src="
file://E:/_bird_wallpapers_06.jpg" width=83
border=0>

<SCRIPT language=JavaScript>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]")
{ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = -1;
if (object.filters.alpha.opacity < destOp){
direction = 1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
</SCRIPT>
我要改那个属性才能让图片由明到暗,而不是由暗到明``````````
搜索更多相关主题的帖子: 效果 
2007-08-03 11:10
lmhllr
Rank: 8Rank: 8
等 级:贵宾
威 望:44
帖 子:1504
专家分:42
注 册:2005-5-12
收藏
得分:0 

这代码风格得改改,看着挺累的,呵呵。。。


<IMG src=\"modules/user/image/error.gif\" onmouseover=nereidFade(this,01,10,7) style=\"FILTER: alpha(opacity=100)\" onmouseout=nereidFade(this,100,70,5) height=100 width=200 border=0>
<SCRIPT language=JavaScript>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta)
{
if (!document.all)return
if (object != \"[object]\")
{
setTimeout(\"nereidFade(\"+object+\",\"+destOp+\",\"+rate+\",\"+delta+\")\",0);return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = -1;
if (object.filters.alpha.opacity < destOp)
{
direction = 1;
}
delta = Math.min(direction*diff,delta);
object.filters.alpha.opacity += direction*delta;
if (object.filters.alpha.opacity != destOp)
{
nereidFadeObjects[object.sourceIndex] = object;
nereidFadeTimers[object.sourceIndex] = setTimeout(\"nereidFade(nereidFadeObjects[\"+object.sourceIndex+\"],\"+destOp+\",\"+rate+\",\"+delta+\")\",rate);
}
}
</SCRIPT>

2007-08-03 11:51
baiqie
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2007-1-19
收藏
得分:0 
回复:(lmhllr)这代码风格得改改,看着挺累的,呵呵...
    谢谢版主,因为我不懂这种语言,所以只好这样贴上来,我还要请教一个问题,就是用论坛里搜索功能,不能像百度一样用关键字搜索??
2007-08-04 22:47
lmhllr
Rank: 8Rank: 8
等 级:贵宾
威 望:44
帖 子:1504
专家分:42
注 册:2005-5-12
收藏
得分:0 
可以吧...没怎么搜索过,不大清楚,这个到帮助区问问吧...
2007-08-05 02:48
快速回复:要的效果反了````
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.028471 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved