- 184 名前:名無しさん@お腹いっぱい。 mailto:sage [2009/03/22(日) 14:11:25 ID:Z48c600X0]
- >>115 の問題に対処するためのスクリプトだ。
IE のコンテキストメニューとして追加してくれ。 +mod のユーザーメニューじゃ使えないぞ。 <html> <script type="text/javascript"> var WshShell = new ActiveXObject ('WScript.Shell'); var URL = external.menuArguments.location.href; var FileProtocol = new RegExp ('^file:///', 'i'); var FilePath; if (URL.search (FileProtocol) != -1) { FilePath = URL.replace(FileProtocol, ''); FilePath = FilePath.replace(/\//g, '\\'); FilePath = unescape (FilePath); WshShell.Run ('notepad.exe ' + '"' + FilePath + '"'); } </script> </html>
|

|