1

Тема: HTA: виджет для Mailinator

Виджет для сервиса Mailinator.

<html>
<!-- autor: -red- 
file: mailinator.hta
get a newly version at: http://code.google.com/p/widget-mailinator/source/browse/trunk/pack/mailinator.hta
-->
<HTA:APPLICATION 
     ID="mailinator" 
     APPLICATIONNAME="mailinator"
     BORDER = "dialog"
     INNERBORDER = "no"
     CONTEXTMENU = "yes"
     MAXIMIZEBUTTON = "no"
     MinimizeButton = "yes"
     SysMenu = "yes"
     SELECTION = "yes"
     SHOWINTASKBAR = "yes"
     CAPTION="yes"
     NAVIGABLE = "no"
     SCROLL = "no"
     SINGLEINSTANCE="no"
     WindowState = "Normal"
     ICON = "mobsync.exe"
>
<head>
<title>mailinator</title></title>
<style>
html, body,form,iframe,input{
   margin:0px;
   padding:0px;
}
</style>
<script type="text/javascript">
    var mailboxname="defaultbox";
    var X=445;
    var Y=225;
    var BadWordFilter="false";
    function GetBox(){
        document.getElementById("MainFrame").src="http://www.mailinator.com/widget/mailin8r.jsp?w="+(X).toString()+"&h="+(Y).toString()+"&b="+document.forms['forma'].boxname.value+"&f="+BadWordFilter;
    }
    function EnterHandle(){
        if(event.keyCode == 13 ){
            //alert("Key "+ event.keyCode);
            document.getElementById("MainFrame").src="http://www.mailinator.com/widget/mailin8r.jsp?w="+(X).toString()+"&h="+(Y).toString()+"&b="+document.forms['forma'].boxname.value+"&f="+BadWordFilter;
            event.returnValue=false;
        }
    }
    onLoad = window.resizeTo(X+5,Y+50);
</script>
</head>

<body>
    <form action="" name="forma">
        <input type="button" value="Change the box to: " onClick="GetBox()" caption="By click here, you change the box to inputed in the left area">
        <input type="text" name="boxname" onKeyDown="EnterHandle()">
    </form>
    <script type="text/javascript">
        document.write("<iframe name='MainFrame' width=1024 height=768 marginwidth=0 marginheight=0 scrolling=no frameborder=0 src='http://www.mailinator.com/widget/mailin8r.jsp?w="+(X).toString()+"&h="+(Y).toString()+"&b="+mailboxname+"&f="+BadWordFilter+"'></iframe>");
        document.forms['forma'].boxname.value=mailboxname;
    </script>
</body>
</html>

Самую новую версию можно скачивать тут: http://code.google.com/p/widget-mailina … trunk/pack.
Автор - -red-.

Предложения в русском языке начинаются с большой буквы и заканчиваются точкой.
В названии ветки всегда должен быть указан язык программирования или среда исполнения скрипта, если это возможно.