网(LieHuo.Net)教程 见过很多Javascript 幻灯片播放效果,觉得太复杂了,自己编写一个简单,css滤镜效果暂时不支持 firfox 全部代码如下,图片路径需要自己修改。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gbk" /><title>简单高效的javascript 幻灯片播放</title></head><body><div><div id="divs"><img src="http://www.wfuyu.com/uploads/userup/98/liehuo_0908201.jpg" title="liehuo.net" id="1" style="FILTER: revealTrans(duration=2,transition=16); cursor:pointer;" onclick="location.href = 'http://www.wfuyu.com'"><img src="http://www.wfuyu.com/uploads/userup/98/liehuo_0908202.jpg" title="liehuo.net" id="2" style="FILTER: revealTrans(duration=2,transition=17); cursor:pointer;display:none" onclick="location.href = 'http://www.wfuyu.com'"><img src="http://www.wfuyu.com/uploads/userup/98/liehuo_0908203.jpg" title="liehuo.net" id="3" style="FILTER: revealTrans(duration=2,transition=18); cursor:pointer;display:none" onclick="location.href = 'http://www.wfuyu.com'"><img src="http://www.wfuyu.com/uploads/userup/98/liehuo_0908204.jpg" title="liehuo.net" id="4" style="FILTER: revealTrans(duration=2,transition=19); cursor:pointer;display:none" onclick="location.href = 'http://www.wfuyu.com'"></div></div></body></html><br /><center>如不能显示效果,请按Ctrl+F5刷新本页,更多网页代码:<a href='http://www.wfuyu.com/' title="liehuo.net" target='_blank'>http://www.wfuyu.com/</a></center>提示:可修改后代码再运行!
上一篇 Apache SHTML网页SSL使用详解
下一篇 图片自适应大小,超出部分自动隐藏缩略