<div class="codetitle"> <span><a style="CURSOR: pointer" data="90351" class="copybut" id="copybut90351" onclick="doCopy('code90351')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code90351"> <br><!--脚本开始--> <br><script language="javascript" type=""> <BR>function countDown(secs){ <BR>tiao.innerText=secs; <BR>if(--secs>0) <BR>setTimeout("countDown("+secs+")",1000); <BR>} <BR>countDown(3); <BR></script> <br><!--脚本结束--> <br> </div> <br>按钮式: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="82065" class="copybut" id="copybut82065" onclick="doCopy('code82065')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code82065"> <br><input name="pclog" type="button" value="GO" onclick="location.href='http://www.ddhbb.com/'"> <br> </div> <br>链接式: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="60039" class="copybut" id="copybut60039" onclick="doCopy('code60039')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code60039"> <br><a href="javascript:history.go(-1)">返回上一步</a> <br><a href="<%=Request.ServerVariables(" http_referer>">返回上一步</a> <br> </div> <br>直接跳转式: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="99560" class="copybut" id="copybut99560" onclick="doCopy('code99560')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code99560"> <br><script>window.location.href='http://www.ddhbb.com';</script> <br> </div> <br>开新窗口: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="80997" class="copybut" id="copybut80997" onclick="doCopy('code80997')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code80997"> <br><a href="javascript:" onclick="window.open('http://www.ddhbb.com/blog/guestbook.asp','','height=500,width=611,scrollbars=yes,status=yes')">布丁足迹</a> <br> </div> <br>JS跳转页面参考代码 <br><br>第一种: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="63243" class="copybut" id="copybut63243" onclick="doCopy('code63243')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code63243"> <br><script language="javascript" type="text/javascript"> <BR>window.location.href="login.jsp?backurl="+window.location.href; <BR></script> <br> </div> <br>第二种: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="89946" class="copybut" id="copybut89946" onclick="doCopy('code89946')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code89946"> <br><script language="javascript"> <BR>alert("返回"); <BR>window.history.back(-1); <BR></script> <br> </div> <br>第三种: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="9837" class="copybut" id="copybut9837" onclick="doCopy('code9837')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code9837"> <br><script language="javascript"> <BR>window.navigate("top.jsp"); <BR></script> <br> </div> <br>第四种: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="76724" class="copybut" id="copybut76724" onclick="doCopy('code76724')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code76724"> <br><script language="JavaScript"> <BR>self.location='top.htm'; <BR></script> <br> </div> <br>第五种: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="76061" class="copybut" id="copybut76061" onclick="doCopy('code76061')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code76061"> <br><script language="javascript"> <BR>alert("非法访问!"); <BR>top.location='xx.jsp'; <BR></script> <br> </div> <br>=====javascript中弹出选择框跳转到其他页面===== <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="51494" class="copybut" id="copybut51494" onclick="doCopy('code51494')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code51494"> <br><script language="javascript"> <BR><!-- <BR>function logout()...{ <BR>if (confirm("你确定要注销身份吗?是-选择确定,否-选择取消"))...{ <BR>window.location.href="logout.asp?act=logout" <BR>} <BR>} <BR>--> <BR></script> <br> </div> <br>=====javascript中弹出提示框跳转到其他页面===== <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="25195" class="copybut" id="copybut25195" onclick="doCopy('code25195')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code25195"> <br><script language="javascript"> <BR><!-- <BR>function logout()...{ <BR>alert("你确定要注销身份吗?"); <BR>window.location.href="logout.asp?act=logout" <BR>} <BR>--> <BR></script> <br> </div>