So I basically want to make a button that changes an image's, let's say, x position to a VBScript variable in HTML. This is an HTA btw, dunno if it actually changes anything.
<script language = "vbscript">
Position = 50
</script>
<body>
<img src = "Something.jpeg" style = "position:relative; top:100px; left:(Position)px;">
</body>
Sorry if I worded this badly...
If you're asking how to change an image's position in an HTA based on user input, then the following code example demonstrates how to do that. Note that no button is required. As soon as new values are entered (and you tab to another element or click in the blank space) the image moves.