标题栏的文字不断变化的特效代码 dn001 2009-06-21 08:29:29 <!--把如下代码加入<body>区域中:--> <form> <p> <input type="button" value="返回" onClick="history.go(-1)" name="button" class="pt9"> <input TYPE="button" NAME="view" VALUE="查看本例的源码" OnClick="window.location="view-source:" +window.location.href" class="pt9"> </p> </form> <form> <p><input TYPE="button" VALUE="返回上一步" ONCLICK="history.back(-1)"></p> </form> <form> <p><input TYPE="button" VALUE="刷新按钮一" ONCLICK="ReloadButton()"></p> </form> <script language="JavaScript"><!-- function ReloadButton(){location.href="index.htm";} // --></script> <form> <p><input TYPE="button" VALUE="刷新按钮二" onClick="history.go(0)"> </p> </form> <form> <p><input TYPE="button" VALUE="回首页按钮" ONCLICK="HomeButton()"></p> </form> <script language="JavaScript"><!-- function HomeButton(){location.href="http://www.knowsky.com";} // --></script> <form> <p><input TYPE="button" VALUE="弹出警告框" ONCLICK="AlertButton()"></p> </form> <script language="JavaScript"><!-- function AlertButton(){window.alert("要多多光临呀!");} // --></script> <form> <p><input TYPE="button" VALUE="状态栏信息" ONCLICK="StatusButton()"></p> </form> <script language="JavaScript"><!-- function StatusButton(){window.status="要多多光临呀!";} // --></script> <form> <p><input TYPE="button" VALUE="背景色变换" onClick="BgButton()"></p> </form> <script>function BgButton(){ if (document.bgColor=='#00ffff') {document.bgColor='#ffffff';} else{document.bgColor='#00ffff';} } </script> <form> <p><input TYPE="button" VALUE="打开新窗口" ONCLICK="NewWindow()"></p> </form> <script language="JavaScript"><!-- function NewWindow(){window.open("/index.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");} // --></script>