[javascript] 바탕화면에 사이트 바로가기 만들기
개발/Javascript2009. 9. 15. 15:29
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<LINK REL="ShortCut ICON" href="http://www.okjsp.pe.kr/favicon.ico">
<TITLE> New Document </TITLE>
<script language="Javascript">
function open_ShortCut() {
var WshShell = new ActiveXObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oUrlLink = WshShell.CreateShortcut(strDesktop + "\\okjsp.url" );
oUrlLink.TargetPath = "http://www.okjsp.pe.kr";
oUrlLink.Save();
}
</script>
</HEAD>
<body>
클릭 <a href="javascript:open_ShortCut()">바탕화면아이콘 저장</a>
</BODY>
</HTML>
<HTML>
<HEAD>
<LINK REL="ShortCut ICON" href="http://www.okjsp.pe.kr/favicon.ico">
<TITLE> New Document </TITLE>
<script language="Javascript">
function open_ShortCut() {
var WshShell = new ActiveXObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oUrlLink = WshShell.CreateShortcut(strDesktop + "\\okjsp.url" );
oUrlLink.TargetPath = "http://www.okjsp.pe.kr";
oUrlLink.Save();
}
</script>
</HEAD>
<body>
클릭 <a href="javascript:open_ShortCut()">바탕화면아이콘 저장</a>
</BODY>
</HTML>
출처 : http://okjsp.pe.kr
'개발 > Javascript' 카테고리의 다른 글
favicon 생성 (0) | 2009.09.17 |
---|---|
[javascript] 현재 페이지를 시작페이지로 설정하기 (0) | 2009.09.17 |
[prototype.js] Element 생성하기 (0) | 2009.09.09 |
[HTML/JavaScript] Select list move options (0) | 2009.08.11 |
[HTML/JavaScript ]select box option 추가 삭제 예제 (0) | 2009.08.11 |