17.打开窗口即最大化 <script language="JavaScript"> <!-- Begin self.moveTo(0,0) self.resizeTo(screen.availWidth,screen.availHeight) // End --> </script> ------------------------------------------------------------------------------- 18.加入背景音乐 <bgsound src="http://www.xuexuexi.com/Web/mid/windblue.mid" loop="-1"> 只适用于IE <embed src="http://www.xuexuexi.com/Web/music.mid" autostart="true" loop="true" hidden="true"> 对Netscape ,IE 都适用 ------------------------------------------------------------------------------- 19.滚动 <marquee direction=up height=146 onmouseout=start() onmouseover=stop() scrollAmount=2>滚动信息 </marquee> -------------------------------------------------------------------------------- 20.防止点击空链接时,页面往往重置到页首端 代码“javascript:void(null)”代替原来的“#”标记 ------------------------------------------------------------------------------- 21.文字或图片弹出指定大小的窗口 在body中加入 <script language="JavaScript" type="text/JavaScript"> function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);} </script> 弹出代码 <a href="#" target="_self" width="550" height="380" border="0">图片或文字</a> ------------------------------------------------------------------------------- |