[thelist] hta files

Vic Wooten vicwooten at eaglewebservices.com
Sun Dec 16 16:50:26 CST 2001


They're "Bad" (as in good!), but could be really bad because of the security
restrictions... rather the lack of. Meanwhile I've been having a blast
playing around with some "Bad" (as in good!) ones. Thought the rest of Ya's
might want to try this one for kicks, and you can use Notepad...just copy
the following to Notepad, and save somewhere as yourfile.hta:

Vic

<html>
<head>
<title>Kewl Browser</title>

<style>
.clsButton {font-family: Arial;
    font-size: 10pt;
    background-color: #E0EDFF;
    color: #0000FF;
}
</style>

<HTA:APPLICATION
    ID = "KewlBrowser"
    APPLICATIONNAME = "Kewl Browser"
    BORDER= "thick"
    BORDERSTYLE = "complex"
    CAPTION = "YES"
    ICON = "kb.ico"
    MAXIMIZEBUTTON = "YES"
    MINIMIZEBUTTON = "YES"
    SHOWINTASKBAR = "YES"
    SINGLEINSTANCE = "NO"
    SYSMENU = "YES"
    VERSION = "1.095"
    WINDOWSTATE = "maximize"
>

<script language="JScript">
var historyLoc = 0;
var blank = new Array(" ");
var theHistory = new Array("http://www.evolt.org");

function goBack(){
    if(historyLoc == 0) return false;

    document.all.webDoc.src = theHistory[--historyLoc];
    theURL.value = theHistory[historyLoc];
}

function goForward(){
    if(historyLoc == theHistory.length - 1) return false;

    document.all.webDoc.src = theHistory[++historyLoc];
    theURL.value = theHistory[historyLoc];
}

function goThere(){
    if(theURL.value.indexOf("://") == -1)
        theURL.value = "http://" + theURL.value;

    if(historyLoc == theHistory.length - 1)
        theHistory = theHistory.concat(blank);

    document.all.webDoc.src = theHistory[++historyLoc] = theURL.value;
}
</script>

</head>

<body>

<table border="0" width="100%"><tr>

<td><input type="button" id="BB" class="clsButton" value="Back"
onClick="goBack()">

<input type="button" id="FB" class="clsButton" value="Forward"
onClick="goForward()">

<font color="blue">url:</font> <input type="text" id="theURL"
value="http://www.evolt.org/" style="width:
expression(document.body.clientWidth - BB.offsetWidth - FB.offsetWidth -
150)" onKeyPress="if(window.event.keyCode == 13) goThere();">

<input type="button" class="clsButton" style="font-Weight: bold" VALUE=" Go!
" onClick="goThere();"></td>

</tr></table>

<iframe src="http://www.evolt.org/" id="webDoc" style="height: 95%; width:
100%; border-style: 1 inset black"></iframe>

</body>
</html>





More information about the thelist mailing list