ZDNet Korea레이어 > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

ZDNet Korea레이어 정보

JavaScript ZDNet Korea레이어

본문

<html>
<head>
<title>ZDNet Korea... 디지털 시대의 선명한 기준</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
.shot { filter: RevealTrans(Duration=0.8, Transition=12)}
</style>

</head>

<body>

<SCRIPT LANGUAGE="Javascript">
function setShotPosition( DIV_id, e ) {
    if (document.all) {
        DIV = eval ( "document.all." + DIV_id );
        DIV.style.left = e.offsetX + 40;
    } else if (document.getElementById) {
        DIV = eval ( "document.getElementById('" + DIV_id + "')");
        DIV.style.top  = e.pageY;
        DIV.style.left = e.pagex;
    }
    //DIV.style.zIndex = ++document.formPdsList.zIndex.value ;
}

function ShowShot( DIV_id ) {
    var ie = ( document.all    ) ? 1 : 0;
    var ns6 = document.getElementById && !document.all ? 1 : 0;
    var DIV = null;
    if ( ie  ) {
        eval(DIV_id + ".filters.RevealTrans.apply()");
        document.all[DIV_id].style.visibility = "visible";
        eval(DIV_id+ ".filters.RevealTrans.play()");
        //DIV = eval ( "document.all." + DIV_id );
        //DIV.style.visibility="visible";
        BtnShot = eval( "document.all." + "BtnShot" + DIV_id.substr(DIV_id.indexOf("_")) );
        BtnShot.href = "javascript:HideShot('" + DIV_id + "')";
    }
    if ( ns6 ) {
        DIV = eval ( "document.getElementById('" + DIV_id + "')");
        DIV.style.visibility="visible";
        BtnShot = eval( "document.getElementById('" + "BtnShot" + DIV_id.substr(DIV_id.indexOf("_")) + "')");
        BtnShot.href = "javascript:HideShot('" + DIV_id + "')";
    }
}

function HideShot( DIV_id ) {
    var ie = ( document.all    ) ? 1 : 0;
    var ns6 = document.getElementById && !document.all ? 1 : 0;
    var DIV = null;
    if ( ie  ) {
        eval(DIV_id + ".filters.RevealTrans.apply()");
        document.all[DIV_id].style.visibility = "hidden";
        eval(DIV_id+ ".filters.RevealTrans.play()");
        //DIV = eval ( "document.all." + DIV_id );
        //DIV.style.visibility="hidden";
        BtnShot = eval( "document.all." + "BtnShot" + DIV_id.substr(DIV_id.indexOf("_")) );
        BtnShot.href = "javascript:ShowShot('" + DIV_id + "')";
    }
    if ( ns6 ) {
        DIV = eval ( "document.getElementById('" + DIV_id + "')");
        DIV.style.visibility="hidden";
        BtnShot = eval( "document.getElementById('" + "BtnShot" + DIV_id.substr(DIV_id.indexOf("_")) + "')");
        BtnShot.href = "javascript:ShowShot('" + DIV_id + "')";
    }
}
</SCRIPT>


<!-- 사진 ------>

<table style="border-collapse:collapse;" cellspacing="0">
    <tr>
        <td width="100%">
<div id='pds_3488' style='position:relative; top:100px; left:100px; visibility:show'>
<a href="javascript:ShowShot( 'shot_3488' );" onClick="setShotPosition( 'shot_3488' , event)" id='BtnShot_3488'><img src="data_img/pds/screenshot/pds_3488.gif" width=136 height=106 border=0 alt='큰이미지보기' style='border: 2px solid #EEEBE8'>
</a><div id="shot_3488" style="width:200px; height:200px; position:absolute; left:50px; top:-30px; z-index:10; visibility:hidden;" class='shot'>
<a href="javascript:HideShot( 'shot_3488' )"><img src='/data_img/pds/screenshot/pds_3488.gif' border='0' alt='클릭하면 스크린샷이 닫힙니다' name='screen_shot_aid'></A>
</div>
</div>
        </td>
    </tr>
</table>

<!-- 사진 끝 -->

</body>

</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로