묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
자바스크립트 질문있어요...
2003.09.21 23:08
저기 그림이 서서히 변하는 소스인데요...
여기선 그림 두장밖에 안되는데 10장 더 추가하려구요...
근데 이미지부분만 늘렷더니 안되네요...
이프문 바꿔줘야 하는데...좀 도와주세요
아는데로 해봤더니 안되요...
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM OTHER BROWSER
var currentimg=1;
img1=new Image();
img2=new Image();
img1.src="http://jjungda.byus.net/givemusic/Maxyoenae01.jpg";
img2.src="http://jjungda.byus.net/givemusic/Maxyoenae04.jpg";
function bannerplay() {
banner.filters.blendTrans.apply();
if(currentimg==1) {
banner.src=img1.src;
currentimg=2;
}
else {
banner.src=img2.src;
currentimg=1;
}
banner.filters.blendTrans.play();
}
// STOP HIDING -->
</SCRIPT>
<object classid="clsid:66B30EA0-C033-4D4B-9F90-EA0AF07363AF" width=0 height=0><param name="FileName" value="http://player.bugs.co.kr/player5/meta_enc.asp?music_idx=kor07132496,&mode="> <param name=PlayCount value=0> </object>
</head>
<body onLoad="bannerplay();">
<table width="548" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td height="334" valign="top"><img name="banner" style="filter:blendTrans(duration=3);"
src="http://jjungda.byus.net/givemusic/Maxyoenae01.jpg" width=500 height=314
onfilterchange="setTimeout('bannerplay();',3000);"></td>
<td width="48" rowspan="2" valign="middle"'>
</td>
</tr>
여기선 그림 두장밖에 안되는데 10장 더 추가하려구요...
근데 이미지부분만 늘렷더니 안되네요...
이프문 바꿔줘야 하는데...좀 도와주세요
아는데로 해봤더니 안되요...
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM OTHER BROWSER
var currentimg=1;
img1=new Image();
img2=new Image();
img1.src="http://jjungda.byus.net/givemusic/Maxyoenae01.jpg";
img2.src="http://jjungda.byus.net/givemusic/Maxyoenae04.jpg";
function bannerplay() {
banner.filters.blendTrans.apply();
if(currentimg==1) {
banner.src=img1.src;
currentimg=2;
}
else {
banner.src=img2.src;
currentimg=1;
}
banner.filters.blendTrans.play();
}
// STOP HIDING -->
</SCRIPT>
<object classid="clsid:66B30EA0-C033-4D4B-9F90-EA0AF07363AF" width=0 height=0><param name="FileName" value="http://player.bugs.co.kr/player5/meta_enc.asp?music_idx=kor07132496,&mode="> <param name=PlayCount value=0> </object>
</head>
<body onLoad="bannerplay();">
<table width="548" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td height="334" valign="top"><img name="banner" style="filter:blendTrans(duration=3);"
src="http://jjungda.byus.net/givemusic/Maxyoenae01.jpg" width=500 height=314
onfilterchange="setTimeout('bannerplay();',3000);"></td>
<td width="48" rowspan="2" valign="middle"'>
</td>
</tr>
var currentimg=0;
var img_arr = new Array();
img_arr[0] = "http://jjungda.byus.net/givemusic/Maxyoenae01.jpg";
img_arr[1] = "http://jjungda.byus.net/givemusic/Maxyoenae02.jpg";
img_arr[2] = "http://jjungda.byus.net/givemusic/Maxyoenae03.jpg";
img_arr[3] = "http://jjungda.byus.net/givemusic/Maxyoenae04.jpg";
function bannerplay() {
banner.filters.blendTrans.apply();
len=img_arr.length;
if (currentimg == len-1) {
banner.src = img_arr[0];
currentimg = 0;
banner.filters.blendTrans.play();
} else {
for(i=0;i<len;i++) {
if(currentimg == i) {
banner.src = img_arr[i];
currentimg = i+1;
break;
}
}
banner.filters.blendTrans.play();
}
}
</script>