<script Language="JavaScript">
var from_time = new Date();
from_time = from_time.getTime();
function show_loading_time(){
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) /1000;
document.write("<font size=2>loading : " + secs + "sec</font>");
}
</script>
2012년 8월 19일 일요일
[JaVaScRiPt] 페이지 로딩 시간
2012년 8월 13일 월요일
[JaVaScRiPt] 모바일 브라우저 체크
function browserCheck(){
var browserCheckText = new Array('iPhone', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson');
for (var word in browserCheckText){
if(navigator.userAgent.toUpperCase().match(browserCheckText[word].toUpperCase()) != null){
location.href = "<%=ctxPath%>/jsp/mobile/mobile.jsp";
break;
}
}
}
피드 구독하기:
덧글
(Atom)