■Google_for_gikoNavi.html
<!-- 検索@Google -->
<SCRIPT LANGUAGE="VBScript">
Call Main
Private Sub Main()
'選択文字列をGoogleで検索
Dim SearchText
Dim emd
Set emd = external.menuArguments.document
'選択部分の文字列を取得
SearchText = emd.selection.createRange().Text
'半角/全角スペースを置換
SearchText = Replace(SearchText, " ", "+")
SearchText = Replace(SearchText, " ", "+")
'検索開始
If Len(SearchText) Then
Dim wsSh
Set wsSh = CreateObject("WScript.Shell")
Call wsSh.Run("
http://www.google.co.jp/search?q=" & SearchText)
End If
Set emd = Nothing
End Sub
</SCRIPT>