본문 바로가기

카테고리 없음

자신의 블로그에 IE9를 위한 작업표시줄에 끌기 기능을 추가해보자


Add IE9 pin tools to your blog! Pin your site for IE9..
출처:http://msdn.microsoft.com/library/gg131029(VS.85).aspx
알맞게 변환해서 쓰세요.
head 태그 안에 추가하세요. ㅋㅋ
Favicon 태그가 없는 경우 또는 ico 태그가 없는 경우 for site without. favicon.
<LINK rel="shortcut icon" type=image/x-icon href="http://your_favicon">
<LINK rel=icon type=image/ico href="./your_icofile_url">
공통 Public..
<meta name="application-name" content="Site Name"/>
<meta name="msapplication-tooltip" content="Site Description"/>
<meta name="msapplication-starturl" content="http://your_link"/>
<meta name="msapplication-window" content="width=yourwidth(example-800);height=yourheight(example-600)"/>
<meta name="msapplication-navbutton-color" content="yournavbuttoncolor(example-red)"/>
작업 Tasks
<META name="msapplication-task" content="name=Task 1;action-uri=http://host/Page1.html;icon-uri=http://task1_icofile"/>
<META name="msapplication-task" content="name=Task 2;action-uri=http://microsoft.com/Page2.html;icon-uri=task2_icofile"/>
아래의 작업은 script 태그 내에 작업하세요..
use script tag before using these tags
<script></script>
이외 작업 Other Tasks
window.external.msSiteModeCreateJumplist('Cartegory Name');
이외 작업 내의 항목 List in Other Tasks.
window.external.msSiteModeAddJumpListItem('Title', 'Link','http://icofile');
이외 작업 항목 표시 Show List in Other Tasks..
window.external.msSiteModeShowJumplist();
이외 작업 항목 비우기.. Clear List in Other Tasks
window.external.msSiteModeClearJumplist();
작업 항목 삭제 후 이벤트 호출 Add Event Listener for task_removed
document.addEventListener('mssitemodejumplistitemremoved', removed, false);
document.attachEvent('onmssitemodejumplistitemremoved', removed);
function removed(url){...}
아이콘 위에 아이콘 덧붙이기.. Displaying overlay icons
window.external.msSiteModeSetIconOverlay('http://overlay_icon', 'Overlay 1');
작업표시줄 썸네일툴바 Toolbar for thumbnails.
btn1 = window.external.msSiteModeAddThumbBarButton( 'http://button1_ico', 'button 1');
btn2 = window.external.msSiteModeAddThumbBarButton( 'http://button2_ico', 'button 2');
...
window.external.msSiteModeShowThumbBar();
document.addEventListener('msthumbnailclick', handler1, false);
function handler1 (btn) {//btn.buttonID is index of clicked button
...};
버튼 바꾸기 Change button style.
style1 = window.external.msSiteModeAddButtonStyle(btn1, 'http://button1_newico', 'style1');
작업 표시줄 버튼 깜빡이기 Flash taskbar button
window.external.msSiteModeActivate();
아이콘크기 IconSize
Recommended 추천: 16x16, 32x32, 48x48
Optimal 최적: 16x16, 24x24, 32x32, 64x64
버튼이 추가되었는지 여부 검사. Detecting Button
if (window.external.msIsSiteMode) {
    // Check if the website was launched from a pinned site. IE9일때 호출
    if (window.external.msIsSiteMode())
    {
        // TRUE 추가됨
    }
    else
    {
        // FALSE 추가안됨.
    }
웹 어플리케이션에 좋을 듯 합니다.. ㅎㅎ