영원한사랑

셀 블렌딩

인터넷정보2007. 10. 12. 13:31

<script language="JavaScript">
<!--
var tInC=null;
var tIdC=null;
var tIdCOn = new Array(0,0,0,0);
var tIdCOff = new Array(1,1,1,1);

function tBgFIn(obj, col,idNum) {
        if(tInC != obj && tInC != null && tIdCOn[idNum] == 0) tBgFOut(tInC,tIdC);       
        if(tIdCOn[idNum] == 0) {
                tIdCOn[idNum] = 1;
                tIdCOff[idNum] = 0;
                tInC=obj;
                tIdC=idNum;
                changeColor(obj, col);
        }
}
function tBgFOut(obj,idNum) {
        if(tIdCOff[idNum] == 0) {
                tIdCOff[idNum] = 1;
                tIdCOn[idNum] = 0;
                changeColor(obj, "#ffffff");
        }
}
function changeColor(obj, col) {
        obj.filters.blendTrans.apply();
        obj.style.backgroundColor= col;
        obj.filters.blendTrans.play();
}

//-->

</script>

<table width="388" height="150" cellpadding="0" cellspacing="1" border="0" bgcolor="#FF00CC">
<tr><td onMouseOver="tBgFIn(bgColorId0, '#A3011B',0)" onMouseOut="tBgFOut(tInC,tIdC)" id="bgColorId0" style="background-color: #ffffff;filter: blendTrans(duration=0.5);" width="182" height="111" align="center"><font size="2" face="돋움">랄랄라<br>순서대로
            마우스를 살짞<br>클릭해 보세요!<br><br>호호호호</font></td><td width="203" height="111" onMouseOver="tBgFIn(bgColorId1, '#FF9900',1)" onMouseOut="tBgFOut(tInC,tIdC)" id="bgColorId1" style="background-color: #ffffff;filter: blendTrans(duration=0.5);" align="center">
            <font size="2" face="돋움">여러가지로,<br>테이블을 늘릴수도있습니다.<br>방법이야,<br>다들
            아시겠죠?</font></td></tr>
</table>
<table width="386" height="150" cellpadding="0" cellspacing="1" border="0" bgcolor="#FF00CC">
<tr><td width="182" height="93" onMouseOver="tBgFIn(bgColorId2, 'lime',2)" onMouseOut="tBgFOut(tInC,tIdC)" id="bgColorId2" style="background-color: #ffffff;filter: blendTrans(duration=0.5);" align="center"><font size="2" face="돋움">이게
            생각보다<br>유용하게 쓰인다구요.<br>음...</font></td><td width="201" height="93" onMouseOver="tBgFIn(bgColorId3, 'aqua',3)" onMouseOut="tBgFOut(tInC,tIdC)" id="bgColorId3" style="background-color: #ffffff;filter: blendTrans(duration=0.5);" align="center"><font size="2" face="돋움">나모에서<br>변형
            가능합니다.<br>소스만 제대로 써주면..<br>ㅎㅎㅎ</font></td></tr></table>
<table width="400" height="20" cellpadding="0" cellspacing="0" border="0">
</table>