烈火今天给大家分享是“点击网页背景循环变暗变亮的效果”,相信大家都见到过这种效果,鼠标在屏幕上点击,屏幕会变暗,再次点击就会变亮,实际上,这种效果是配合Ajax操作的,一般情况下,变暗是说明不可操作,在当前页,肯定有高亮显示的项目。 我们来看一下实例演示: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /> <html xmlns="http://www.w3.org/1999/xhtml"><br /> <head><br /> <meta http-equiv="Content-Type" content="text/html; charset=GBK" /><br /> <title>鼠标点击屏幕背景变暗的代码</title><br /> <meta name="author" content="liehuo.net" /><br /> <style><br /> #pageOverlay { position:fixed; top:0; left:0; z-index:1987; width:100%; height:100%; background:#000; filter:alpha(opacity=70); opacity:0.7; }<br /> /*IE6 fixed*/<br /> * html { background:url(*) fixed; }<br /> * html body { margin:0; height:100%; }<br /> * html #pageOverlay { position: absolute; left: expression(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth); top: expression(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight); }<br /> </style><br /> </head><br /> <body><br /> <ol id="test" onclick="document.getElementById('pageOverlay').style.visibility = 'visible'"><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> <li>烈火学院_Liehuo.Net</li><br /> </ol><br /> <div id="pageOverlay" onclick="this.style.visibility = 'hidden'"></div><br /> </body><br /> </html><br /><center>如不能显示效果,请按Ctrl+F5刷新本页,更多网页代码:<a href='http://www.veryhuo.com/' target='_blank'>http://www.veryhuo.com/</a></center>提示:可修改后代码再运行! 文章导航 鼠标经过背景变色效果 利用CSS链接属性实现js烟花效果[三],背景式以3D立体展现到渐渐消失