Áú¹®³»¿ë ±×´ë·Î ÀÔ´Ï´Ù.
½½¶óÀ̵å ÅǸ޴º¿¡¼ ¸Þ´º¸¦ Çϳª´õ Ãß°¡ÇÏ°í ½ÍÀºµ¥ Àß ¸ð¸£°Ú½À´Ï´Ù.
<!------------------------- ¾Æ·¡ --------------------------------------------->
<table width="920" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="920" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="http://sweetyspoon.cafe24.com/test/best_test_title.gif"></td>
<td>
<table width="100" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td align="right"><a href="javascript:DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1);" onFocus="blur()" onMouseOver="DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1)" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif" name="Image11" width="100" height="40" border="0" id="Image11"></a></td>
<td align="right"><a href="javascript:DivOver('t2','','http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif',1);" onFocus="blur()" onMouseOver="DivOver('t2','','http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif',1)" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif" name="Image21" width="100" height="40" border="0" id="Image21"></a></td>
<td align="right"><a href="javascript:DivOver('t3','','http://sweetyspoon.cafe24.com/test/tit_special_03_o.gif',1);" onFocus="blur()" onMouseOver="DivOver('t3','','http://sweetyspoon.cafe24.com/test/tit_special_03_o.gif',1)" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/tit_special_03_o.gif" name="Image31" width="100" height="40" border="0" id="Image31"></a></td>
<td align="right"><a href="javascript:DivOver('t4','','http://sweetyspoon.cafe24.com/test/tit_special_04_o.gif',1);" onFocus="blur()" onMouseOver="DivOver('t4','','http://sweetyspoon.cafe24.com/test/tit_special_04_o.gif',1)" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/tit_special_04_o.gif" name="Image41" width="100" height="40" border="0" id="Image41"></a></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="d1" style="display:block">
<table width="920" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16"><a href="javascript:DivNext('t1');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_l_01.gif" width="50" height="80" border="0"></a></td>
<td valign="top">
<table width="888" border="0" cellspacing="0" cellpadding="0" align="center">
</table>
</td>
<td width="16"><a href="javascript:DivPrev('t1');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_r_01.gif" width="50" height="80" border="0"></a></td>
</tr>
</table>
</div>
<div id="d2" style="display:none">
<table width="920" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16"><a href="javascript:DivNext('t2');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_l_01.gif" width="50" height="80" border="0"></a></td>
<td valign="top">
<table width="888" border="0" cellspacing="0" cellpadding="0" align="center">
</table>
</td>
<td width="16"><a href="javascript:DivPrev('t2');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_r_01.gif" width="50" height="80" border="0"></a></td>
</tr>
</table>
</div>
<div id="d3" style="display:none">
<table width="920" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16"><a href="javascript:DivNext('t3');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_l_01.gif" width="50" height="80" border="0"></a></td>
<td valign="top">
<table width="888" border="0" cellspacing="0" cellpadding="0" align="center">
</table>
</td>
<td width="16"><a href="javascript:DivPrev('t3');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_r_01.gif" width="50" height="80" border="0"></a></td>
</tr>
</table>
</div>
<div id="d4" style="display:none">
<table width="920" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16"><a href="javascript:DivNext('t4');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_l_01.gif" width="50" height="80" border="0"></a></td>
<td valign="top">
<table width="888" border="0" cellspacing="0" cellpadding="0" align="center">
</table>
</td>
<td width="16"><a href="javascript:DivPrev('t4');" onFocus="this.blur()"><img src="http://sweetyspoon.cafe24.com/test/best_test_r_01.gif" width="50" height="80" border="0"></a></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="1" bgcolor="DFDFDF"></td>
</tr>
</table>
<script language=javascript>
var selectDiv = "";
var objCnt = 24
function DivOver(obj) {
var objNm = obj.substring(1, 2);
if(parseInt(objNm) == 1){
eval("document.getElementById('d"+ objNm +"').style.display = 'block'");
if(parseInt(objCnt) > 3) {
eval("document.getElementById('d"+ (parseInt(objNm)+1) +"').style.display = 'none'");
}
if(parseInt(objCnt) > 6) {
eval("document.getElementById('d"+ (parseInt(objNm)+2) +"').style.display = 'none'");
}
eval("Image"+ objNm +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif'");
if(parseInt(objCnt) > 3) {
eval("Image"+ (parseInt(objNm)+1) +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_02.gif'");
}
if(parseInt(objCnt) > 6) {
eval("Image"+ (parseInt(objNm)+2) +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_03.gif'");
}
selectDiv = 't1';
}else if(parseInt(objNm) == 2){
eval("document.getElementById('d"+ (parseInt(objNm)-1) +"').style.display = 'none'");
eval("document.getElementById('d"+ objNm +"').style.display = 'block'");
if(parseInt(objCnt) > 6) {
eval("document.getElementById('d"+ (parseInt(objNm)+1) +"').style.display = 'none'");
}
eval("Image"+ (parseInt(objNm)-1) +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_01.gif'");
eval("Image"+ objNm +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif'");
if(parseInt(objCnt) > 6) {
eval("Image"+ (parseInt(objNm)+1) +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_03.gif'");
}
selectDiv = 't2';
}else if(parseInt(objNm) == 3){
eval("document.getElementById('d"+ (parseInt(objNm)-2) +"').style.display = 'none'");
eval("document.getElementById('d"+ (parseInt(objNm)-1) +"').style.display = 'none'");
eval("document.getElementById('d"+ objNm +"').style.display = 'block'");
eval("Image"+ (parseInt(objNm)-2) +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_01.gif'");
eval("Image"+ (parseInt(objNm)-1) +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_02.gif'");
eval("Image"+ objNm +"1.src = 'http://sweetyspoon.cafe24.com/test/tit_special_03_o.gif'");
selectDiv = 't3';
}
}
function DivNext(obj) {
selectDiv = obj;
if(selectDiv == 't1') {
if(parseInt(objCnt) > 6) {
DivOver('t3','','http://sweetyspoon.cafe24.com/test/tit_special_03_o.gif',1);
}else if(parseInt(objCnt) > 3) {
DivOver('t2','','http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif',1);
}else{
DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1);
}
} else if(selectDiv == 't2') {
DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1);
} else if(selectDiv == 't3') {
DivOver('t2','','http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif',1);
}
}
function DivPrev(obj) {
selectDiv = obj;
if(selectDiv == 't1') {
if(parseInt(objCnt) > 3) {
DivOver('t2','','http://sweetyspoon.cafe24.com/test/tit_special_02_o.gif',1);
}else{
DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1);
}
} else if(selectDiv == 't2') {
if(parseInt(objCnt) > 6) {
DivOver('t3','','http://sweetyspoon.cafe24.com/test/tit_special_03_o.gif',1);
}else{
DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1);
}
} else if(selectDiv == 't3') {
DivOver('t1','','http://sweetyspoon.cafe24.com/test/tit_special_01_o.gif',1);
}
}
// 3Ãʸ¶´Ù »óÇ°(New Arrival) ·Ñ¸µ!
function nowDisplayArrival() {
var sports_date = new Date();
if ( sports_date.getSeconds()%5 == 1 ) {
document.getElementById("d1").style.display = "block";
DivOver("t1","","http://sweetyspoon.cafe24.com/test/tit_special_0'1'_o.gif",1);
document.getElementById("d2").style.display = "none";
document.getElementById("d3").style.display = "none";
}
if ( sports_date.getSeconds()%5 == 2 ) {
document.getElementById("d1").style.display = "none";
document.getElementById("d2").style.display = "block";
DivOver("t2","","http://sweetyspoon.cafe24.com/test/tit_special_0'2'_o.gif",1);
document.getElementById("d3").style.display = "none";
}
if ( sports_date.getSeconds()%5 == 3 ) {
document.getElementById("d1").style.display = "none";
document.getElementById("d2").style.display = "none";
document.getElementById("d3").style.display = "block";
DivOver("t3","","http://sweetyspoon.cafe24.com/test/tit_special_0'3'_o.gif",1);
}
window.setTimeout("nowDisplayArrival()", 3000);
} // end of function
function goChkRuntime() {
nowDisplayArrival();
} // end of func(goChkRuntime())
// HitItems ÀÚµ¿·Ñ¸µ½ÇÇà
if(parseInt(objCnt) > 3 && parseInt(objCnt) <= 6) {
document.body.onload=goChkRuntime2;
}else if(parseInt(objCnt) > 6) {
document.body.onload=goChkRuntime;
}
</script>