HTAファイルとして保存します
コードは次のとおりです。
<html>
<head>
<title> wubi fontコーディングクエリツール</title>
<metahttp-equiv = "content-type" content = "text/html; charset = gb2312"/>
<HTA:アプリケーション
MaximizeButton = "no"
icon = "http://www.w3cg.net/wubi/wb.ico"
id = "wubiapp"
singleInstance = "はい"
ContextMenu = "はい"
sysmenu = "yes"
window -state = "normal"
border = "thin"
minimizebutton = "yes"
ApplicationName = ""
version = "1.0"
innerborder = "no"
キャプション= "はい"
showintaskbar = "no"
/>
<styletype = "text/css">
<! -
ボディ{背景:#d4d0c8;}
*{font-family:arial、sans-serif; font-size:9pt; color:#333;}
#main {width:100%; height:100%;}
textarea {line-height:130%;}
A:リンク、a:訪問{テキストデコレーション:なし;}
- >
</style>
<ScriptLanguage = "JavaScript">
<! -
varurl = "http://www.w3cg.net/wubi/";
varbtv1 = "ドロップダウンリストボックスを変更して、必要な関数を選択できます";
varbtv2 = "共有していただきありがとうございます。ここをクリックして、これらの漢字をエンコードする情報を送信できます」。
varbtv3 = "メッセージを書いたと確信している場合は、ここをクリックして著者に送信してください」。
varbtv4 = "データをサーバーに送信してください、待ってください....";
varxmlhttp;
試す{
xmlhttp = newactivexobject( "microsoft.xmlhttp");
}
catch(e){
アラート(「申し訳ありませんが、システムオブジェクトを作成できません。システム設定を確認してください。」);
xmlhttp = false;
}
functionTrim(str){
str = str.replace(/^/s*/、 "");
str = str.replace(// s*$/、 "");
ReturnStr;
}
functionwindow.onload(){
varawidth、aheight;
varswidth、sheight;
Awidth = 600;
aheight = 300;
swidth = screen.width;
show = screen.height;
window.resizeto(awidth、aheight);