A few years ago Helen offered a simple script to display a picture. It was just what I was looking for. The picture window closes by itself after a certain amount of time. Now I would like to change that so that it only closes when clicking on it. Can someone please help?
You can change that HTA as follows:
remove line idTimer = window.setTimeout("vbscript:window.close", 5000)
replace <body>
with <body onclick="vbscript:window.close">
UPD: and to slide the picture across the screen by dragging with right | mid button just add:
<script language="JavaScript">
(function() {
var x0,y0;
document.onmousemove=function () {
if ((event.button!=0)&&(event.button!=1)){
window.moveBy(event.x-x0, event.y-y0);
return false;
}
document.body.style.cursor='auto';
}
document.onmousedown=function () {
if (event.button!=1){
document.body.style.cursor='move';
x0=event.x;
y0=event.y;
}
}
})();
</script>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments