홈페이지 속도 자체 측정하기 정보
기타 홈페이지 속도 자체 측정하기본문
<BODY onLoad=measure()>
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM OLD BROWERS
sttime = new Number()
msec1 = new Number()
sttime=new Date()
msec1=sttime.getTime()
myNum = msec1
// 페이지가 열리는 동안 나오는 문구입니다.
document.writeln ("<CENTER><b><font size=2><font color=#303468>자체 속도 테스트 페이지입니다. (JPG)</font></font></CENTER><HR>")
document.write ("<CENTER>")
document.write ("<img width=500 height=350 src=test.jpg?")
document.write (myNum)
document.write ("><BR><BR></CENTER>")
function measure()
{
endtime = new Number()
msec2 = new Number()
var msec1
var diff
var rd
msec1 = myNum
document.open()
document.close()
endtime=new Date()
msec2=endtime.getTime()
diff=(msec2 - msec1) * 0.001
rd=Math.round(73227.2/diff)*10
if (diff<1) {window.document.write("<center><b><font size=-1><font color=#303468>현페이지를 여는데</font><font color=#660099> " + diff + " 초</font><font color=#303468> 걸렸습니다.</font></font></b></center>")
}
else {
if (diff==1) {window.document.write("<center><b><font size=2><font color=#303468>This page was loaded in 1 second. </font></font></b></center>")}
else {window.document.write("<center><b><font size=-1><font color=#303468>현페이지를 여는데</font><font color=#660099> " + diff + " 초</font><font color=#303468> 걸렸습니다. </font></font></b></center>")}
}
if (diff<0.4) {
window.document.write("<br>It is possible that the page was loaded from your 'Temporary Internet Files' cache on your hard disk.")}
if (navigator.appName=='Netscape')
{
document.writeln ("<br><br>다시 테스트 해보시려면 shift키를 누르시고 Reload 버튼을 클릭하십시오.<br><br>")
}
else {
document.writeln ("<script>")
document.writeln ("dt=new Date()")
document.writeln ("mt=dt.getMonth()")
document.writeln ("dy=dt.getDay()")
document.writeln ("hr=dt.getHours()")
document.writeln ("mn=dt.getMinutes()")
document.writeln ("sc=dt.getSeconds()")
document.writeln ("vr=sc+mn*60+hr*3600+dy*86400+mt*86400*31")
document.writeln ("document.loc='speed.htm?'+vr")
document.writeln ("</script>")
}
if (diff>0.399) {
document.write ("<CENTER><table width=98% border=1 cellspacing=0 cellpadding=0 bordercolor=#dac9ab><TR><TD>")
document.write ("<TABLE cellspacing=16 border=0 bgcolor=#fefbf1 width=100%><COLGROUP SPAN=1 ALIGN=right>")
document.write ("<TR><TD><FONT face='arial' color=#660000 size=2><B>현재속도 </B></FONT></TD>")
document.write ("<TD><img src='red1.gif'><img src='red2.gif' height=16 width="+320/diff+"><img src='grey.gif'> "+rd+" cps<BR></TD>")
document.write ("<TR><TD><FONT face='arial' color=#006600 size=2><B>1Mbps </B></FONT></TD>")
document.write ("<TD><img src='green1.gif'><img src='green2.gif' height=16 width="+320/5.85+"><img src='grey.gif'> 125000 cps<BR></TD>")
document.write ("<TR><TD><FONT face='arial' color=#006600 size=2><B>2Mbps </B></FONT></TD>")
document.write ("<TD><img src='green1.gif'><img src='green2.gif' height=16 width="+320/3.0+"><img src='grey.gif'> 250000 cps<BR></TD>")
document.write ("<TR><TD><FONT face='arial' color=#006600 size=2><B>4Mbps </B></FONT></TD>")
document.write ("<TD><img src='green1.gif'><img src='green2.gif' height=16 width="+320/1.5+"><img src='grey.gif'> 500000 cps<BR></TD>")
document.write ("</TR></TABLE>")
document.write ("</TR></TABLE></CENTER>")
}
document.write ("<br><br>")
document.write("<center><font size='-1' face='돋움'><a href='" + document.location + "'>다시 테스트!!</a></font></center>")
}
//END HIDE -->
</SCRIPT>
</BODY>
html로 저장해서쓰는건 알겟져?/ 아주유용합니당
그럼 좋은 리플달아주시구 언제든지 필요한거
있음 모든지 올려드리겠습니다
그누를 사랑하는 사람으로써
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM OLD BROWERS
sttime = new Number()
msec1 = new Number()
sttime=new Date()
msec1=sttime.getTime()
myNum = msec1
// 페이지가 열리는 동안 나오는 문구입니다.
document.writeln ("<CENTER><b><font size=2><font color=#303468>자체 속도 테스트 페이지입니다. (JPG)</font></font></CENTER><HR>")
document.write ("<CENTER>")
document.write ("<img width=500 height=350 src=test.jpg?")
document.write (myNum)
document.write ("><BR><BR></CENTER>")
function measure()
{
endtime = new Number()
msec2 = new Number()
var msec1
var diff
var rd
msec1 = myNum
document.open()
document.close()
endtime=new Date()
msec2=endtime.getTime()
diff=(msec2 - msec1) * 0.001
rd=Math.round(73227.2/diff)*10
if (diff<1) {window.document.write("<center><b><font size=-1><font color=#303468>현페이지를 여는데</font><font color=#660099> " + diff + " 초</font><font color=#303468> 걸렸습니다.</font></font></b></center>")
}
else {
if (diff==1) {window.document.write("<center><b><font size=2><font color=#303468>This page was loaded in 1 second. </font></font></b></center>")}
else {window.document.write("<center><b><font size=-1><font color=#303468>현페이지를 여는데</font><font color=#660099> " + diff + " 초</font><font color=#303468> 걸렸습니다. </font></font></b></center>")}
}
if (diff<0.4) {
window.document.write("<br>It is possible that the page was loaded from your 'Temporary Internet Files' cache on your hard disk.")}
if (navigator.appName=='Netscape')
{
document.writeln ("<br><br>다시 테스트 해보시려면 shift키를 누르시고 Reload 버튼을 클릭하십시오.<br><br>")
}
else {
document.writeln ("<script>")
document.writeln ("dt=new Date()")
document.writeln ("mt=dt.getMonth()")
document.writeln ("dy=dt.getDay()")
document.writeln ("hr=dt.getHours()")
document.writeln ("mn=dt.getMinutes()")
document.writeln ("sc=dt.getSeconds()")
document.writeln ("vr=sc+mn*60+hr*3600+dy*86400+mt*86400*31")
document.writeln ("document.loc='speed.htm?'+vr")
document.writeln ("</script>")
}
if (diff>0.399) {
document.write ("<CENTER><table width=98% border=1 cellspacing=0 cellpadding=0 bordercolor=#dac9ab><TR><TD>")
document.write ("<TABLE cellspacing=16 border=0 bgcolor=#fefbf1 width=100%><COLGROUP SPAN=1 ALIGN=right>")
document.write ("<TR><TD><FONT face='arial' color=#660000 size=2><B>현재속도 </B></FONT></TD>")
document.write ("<TD><img src='red1.gif'><img src='red2.gif' height=16 width="+320/diff+"><img src='grey.gif'> "+rd+" cps<BR></TD>")
document.write ("<TR><TD><FONT face='arial' color=#006600 size=2><B>1Mbps </B></FONT></TD>")
document.write ("<TD><img src='green1.gif'><img src='green2.gif' height=16 width="+320/5.85+"><img src='grey.gif'> 125000 cps<BR></TD>")
document.write ("<TR><TD><FONT face='arial' color=#006600 size=2><B>2Mbps </B></FONT></TD>")
document.write ("<TD><img src='green1.gif'><img src='green2.gif' height=16 width="+320/3.0+"><img src='grey.gif'> 250000 cps<BR></TD>")
document.write ("<TR><TD><FONT face='arial' color=#006600 size=2><B>4Mbps </B></FONT></TD>")
document.write ("<TD><img src='green1.gif'><img src='green2.gif' height=16 width="+320/1.5+"><img src='grey.gif'> 500000 cps<BR></TD>")
document.write ("</TR></TABLE>")
document.write ("</TR></TABLE></CENTER>")
}
document.write ("<br><br>")
document.write("<center><font size='-1' face='돋움'><a href='" + document.location + "'>다시 테스트!!</a></font></center>")
}
//END HIDE -->
</SCRIPT>
</BODY>
html로 저장해서쓰는건 알겟져?/ 아주유용합니당
그럼 좋은 리플달아주시구 언제든지 필요한거
있음 모든지 올려드리겠습니다
그누를 사랑하는 사람으로써
추천
0
0
댓글 전체

넷스케이프에서 잘 됩니다.