29.随机变换背景图象(一个可以刷新心情的特效) <Script Language="JavaScript"> image = new Array(4); //定义image为图片数量的数组 image = 'tu0.gif' //背景图象的路径 image = 'tu1.gif' image = 'tu2.gif' image = 'tu3.gif' image = 'tu4.gif' number = Math.floor(Math.random() * image.length); document.write("<BODY BACKGROUND="+image+">"); </Script> ------------------------------------------------------------------------------- 30.图片表单按钮 <form id="form1" name="form1" method="post" action=""> <img src="http://www.xuexuexi.com/images/NullPic.gif" width="62" height="22" /> </form> ------------------------------------------------------------------------------- 31.左右阴影背景的CSS定义方法 body { text-align:center; background-repeat: repeat-y; background-position: center; background-image: url(../images/bg.jpg); } ------------------------------------------------------------------------------- 32.划过链接 手型鼠标 style="cursor:hand" ------------------------------------------------------------------------------- 33.如何关闭层 <div id="Layer1"></div> <a href="#" >关闭层</a> ------------------------------------------------------------------------------- |