閱讀104 返回首頁    go 阿裏雲 go 技術社區[雲棲]


Jquery實現頁麵定時跳轉

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>跳轉頁麵</title> <mce:script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" mce_src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></mce:script> <mce:script language="javascript"><!-- $(document).ready(function() { function jump(count) { window.setTimeout(function(){ count--; if(count > 0) { $('#num').attr('innerHTML', count); jump(count); } else { location.href="login.jsp"; } }, 1000); } jump(3); }); // --></mce:script> </head> <body> <span mce_>歡迎來到******!</span><br/>頁麵將在3秒後跳轉...<br/>還剩<span >3</span>秒 </body> </html>

最後更新:2017-04-02 06:51:33

  上一篇:go magento -- 推薦插件 -- 按字母過濾列表頁產品 --alphabates
  下一篇:go Date.parse Firefox返回Nan的解決辦法