<html>
<head>
<HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="GoogleTranslateApp"
    BORDER="dialog"
    BORDERSTYLE="raised"
    CAPTION="yes"
    ICON=""
    SCROLL="no"
    MAXIMIZEBUTTON="yes"
    MINIMIZEBUTTON="yes"
    SHOWINTASKBAR="yes"
    SINGLEINSTANCE="yes"
    INNERBORDER="no"
    SYSMENU="yes"
    VERSION="1.0"/>  
 
<script language="javascript">
<!--
function LoadWindow()
{
    window.resizeTo(700,600);
   
    /*
    window.IFrameGoogle.document.body.bgColor="#D4D0C8";
    window.IFrameGoogle.document.body.onselectstart=function(){
        return false;
    }
    window.IFrameGoogle.document.body.onselect=function(){
        return false;
    }
    window.IFrameGoogle.document.body.oncontextmenu=function(){
        return false;
    }*/
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Google翻译</title>
</head>
 
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" onload="LoadWindow()">
 
<iframe name="IFrameGoogle" src="http://translate.google.cn/?hl=zh-CN&tab=wT"
    marginwidth="1" marginheight="1" border="0" frameborder="0"
    width="700" height="617" scrolling="no">
</iframe>
   
</body>
</html>

将以上代码另存为.hta文件即可,效果:


本文链接地址: 把Google翻译网页放到桌面上
https://blog.qingfengju.com/index.asp?id=193

上一篇: 用Doxygen自动生成C++程序文档
下一篇: 用keybd_event模拟键盘按键

分类:Web开发 查看次数:8671 发布时间:2010/1/28 10:15:21