 |
|
|  |
|
 홈페이지 |
22년 전 |
이미지 파일 받아서 자신의 경로로 수정하시길 바랍니다.
주소 부분을자신의 홈 주소로 변경해주시면 됩니다.
메인주소로 써주셔야 합니다. 인덱스에 요걸 넣으시구요^^;
========================================
<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>
|
|
추천 : 452 |
추천
목록
|
|
|  |
|