블로그 이미지
내게 능력 주시는 자 안에서 내가 모든것을 할수 있느니라 - 빌립보서 4 : 13 - happydong

카테고리

Happydong (1363)
프로그래밍 (156)
MUSIC (16)
인물 (3)
Utility (10)
세미나 소식&내용 (22)
IT뉴스 (18)
운동 (830)
CAFE (10)
Life (282)
Total
Today
Yesterday



" 스크립트로 실버라이트 띄우기 "

Silverlight.js를 이용한 실버라이트 애플리케이션 띄우기!!
참고 내용은 공도님 블로그.

위 스크립트를 웹사이트에 넣어주고 페이지에 스크립트 참조를 한다.

<script type="text/javascript" src="Silverlight.js"></script>

스크립트 생성 코드

<body>

    <div id="silverlightControlHost">

    </div>

</body>

</html>
<script type="text/javascript">

 

    Silverlight.createObjectEx({

        source: "/TestProject01.Web/ClientBin/TestProject01.xap",

        parentElement: document.getElementById("SilverlightControlHost"),

        id: "SilverlightControl",

        properties: {

            width: "100%",

            height: "100%",

            version: "1.0",

            background: "white",

            isWindowless: "true",

            framerate: "24"

        },

        events: {

            onLoad: null

        }

    });

</script>


스크립트 소스 코드는 눈으로 봐도 알 것이다.
Posted by happydong
, |