 |
|
|  |
·Îµù 100% ÈÄ ÆäÀÌÁö À̵¿½ÃÅ°±â |
|
|
 ȨÆäÀÌÁö |
20³â Àü |
À̹ÌÁö ÆÄÀÏ ¹Þ¾Æ¼ ÀÚ½ÅÀÇ °æ·Î·Î ¼öÁ¤ÇÏ½Ã±æ ¹Ù¶ø´Ï´Ù.
ÁÖ¼Ò ºÎºÐÀ»ÀÚ½ÅÀÇ È¨ ÁÖ¼Ò·Î º¯°æÇØÁÖ½Ã¸é µË´Ï´Ù.
¸ÞÀÎÁÖ¼Ò·Î ½áÁÖ¼Å¾ß ÇÕ´Ï´Ù. À妽º¿¡ ¿ä°É ³ÖÀ¸½Ã±¸¿ä^^;
========================================
<head> </head> »çÀÌ¿¡ ¼Ò½º¸¦ »ðÀÔÇϼ¼¿ä.
========================================
<script language=javascript>
prog_sec = 0.5; // Prosess time
length_bar = 300; // Bar length
cnt_img = 15; // Number of image
width_img = length_bar/cnt_img; // width of image
height_img = 8; // height of image
var chk_cnt = 0;
var prog_per = 0;
var time_unit = (prog_sec*1000)/cnt_img;
function progress() {
if(chk_cnt < cnt_img) {
document.images["prog_img"+chk_cnt].src = "http://www.script.ne.kr/image/upload/icon/prog_bar.gif";
chk_cnt++;
prog_per = Math.round((chk_cnt/cnt_img)*100);
if(document.all) { // ie4+
document.all.prog_num.innerHTML = prog_per + "%";
}
else if(document.getElementById) { // nn6+
document.getElementById("prog_num").innerHTML = prog_per + "%";
}
if(chk_cnt == cnt_img) {
window.location.replace("¸µÅ©ÁÖ¼Ò");
}
setTimeout("progress();", time_unit);
}
}
</script>
========================================
<body> ¾È¿¡ ³Ö¾îÁÖ¼¼¿ä.
========================================
<body onLoad="progress();" >
========================================
<body> </body> »çÀÌ¿¡ ¼Ò½º¸¦ »ðÀÔÇϼ¼¿ä.
========================================
<script language=javascript>
for(i=0;i<cnt_img;i++) {
document.write("<img src=http://www.script.ne.kr/image/upload/icon/prog_bg.gif width="+width_img+" height="+height_img+" name=prog_img"+i+" border=0>");
}
</script>
<div id=prog_num class=small></div>
|
|
̵̧ : 333 |
̵̧
¸ñ·Ï
|
|
|  |
|