»
Tiếng AnhTiếng PhápTiếng Việt

In - Chuyển trang dựa vào trình duyệt - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Trình duyệt » Cửa sổ » Chuyển trang dựa vào trình duyệt
URL: https://www.javascriptbank.com/browser-redirect-index.html

Chuyển trang dựa vào trình duyệt © JavaScriptBank.comĐọan script này có tác dụng chuyển sang trang khác khi bạn vừa truy cập vào. Tuy nhiên, trước khi chuyển, hiệu ứng sẽ kiểm tra xem lọai trình duyệt bạn đang dùng và chuyển sang trang tương ứng với trình duyệt đó.

Phiên bản đầy đủ: jsB@nk » Trình duyệt » Cửa sổ » Chuyển trang dựa vào trình duyệt
URL: https://www.javascriptbank.com/browser-redirect-index.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!--NetScape = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 2 ));IE = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 2 ));timer = 5000; // the time to wait until the browser redirectsif (NetScape){function CLBrwNSRedirectTimer() {setTimeout ("CLBrwNSRedirect()",timer)}function CLBrwNSRedirect() {location.href = "netscape.html"} // here you can set the page where the user will goCLBrwNSRedirectTimer()}                                        // if he is using Netscape navigator//Copyright (c) 2002 Coyotee Labs Romania (www.coyoteelabs.go.ro)//This script can be used freely as long as all copyright messages are//intact. Visit WWW.COYOTEELABS.GO.RO for more scriptsif (IE){function CLBrwIERedirectTimer(){setTimeout ("CLBrwIERedirect()",timer)}function CLBrwIERedirect(){location.href = "internet_explorer.html"} // here you can set the page where the user CLBrwIERedirectTimer()}                                                // if he is using Internet Explorer//--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->