急需两张图片交换的代码 <img onClick="this.src=(this.src=='a.gif')?'b.gif':'a.gif';" src="a.gif"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <img onClick="this.src=(this.src=='http://image2.sina.com.cn/sms/sinapic/107245-index.gif')?'http://image2.sina.com.cn/sms/sinapic/107279-index.gif':'http://image2.sina.com.cn/sms/sinapic/107245-index.gif';" src="http://image2.sina.com.cn/sms/sinapic/107279-index.gif"> 刚刚用csdn的两个图片,说可能对本论坛有危害,我晕~~~~~~~~~上面的要调整以下格式就可以用了。原理是一样的。 <script>function Flash(bStatus){ if(ImgDivID.filters.glow.enabled==1) { ImgDivID.filters.glow.enabled=0; } if(ImgDivID.filters.blendTrans.status==0) { ImgDivID.filters.blendTrans.apply(); ImgDivID.filters.glow.enabled=1; ImgDivID.filters.blendTrans.play(); } if(bStatus=="1") { ImgID.src="中国的航母.jpg"; } else { ImgID.src="中国自行火炮系列.jpg"; }}</script><div id=ImgDivID onmouseout=Flash("1") onmouseover=Flash("0") style="filter:glow(color=#ffff00,strength=20,enabled=0) blendTrans(duration=2);height:400px"><img src="中国自行火炮系列.jpg" id="ImgID"></div> 这段创建表格代码出错在哪里??????????? javascript表单处理毫无规律(标准)可言 dtree如何获取节点值? 网页在线编辑器的问题 JQuery 动态生成xml 用于ajax调用问题 怎样访问Excel2003问题--在线等 系统时间影响了eclipse的编译和更新 请教 求HTML在线编辑器源码,能插入FORM表单元素,能移动text,button等的位置,拖动可以改变大小 JavaScript 鼠标定位,答者高分,万分感谢! 求一个这样的时间函数~~~ window.showModalDialog函数可以调用异地的网页么?
原理是一样的。
function Flash(bStatus)
{
if(ImgDivID.filters.glow.enabled==1)
{
ImgDivID.filters.glow.enabled=0;
}
if(ImgDivID.filters.blendTrans.status==0)
{
ImgDivID.filters.blendTrans.apply();
ImgDivID.filters.glow.enabled=1;
ImgDivID.filters.blendTrans.play();
}
if(bStatus=="1")
{
ImgID.src="中国的航母.jpg";
}
else
{
ImgID.src="中国自行火炮系列.jpg";
}
}
</script>
<div id=ImgDivID onmouseout=Flash("1") onmouseover=Flash("0")
style="filter:glow(color=#ffff00,strength=20,enabled=0) blendTrans(duration=2);height:400px">
<img src="中国自行火炮系列.jpg" id="ImgID">
</div>