Hello,
in my project i want to create a splash screen and after 5 seconds load the proper hta. But when i load it the splash is just white. I have to put my mouse over it to see the splash screen.
Here is my source code:
Thank you.
in my project i want to create a splash screen and after 5 seconds load the proper hta. But when i load it the splash is just white. I have to put my mouse over it to see the splash screen.
Here is my source code:
Code:
<html>
<head>
<title>Loading...</title>
<script language="vbscript">
Function load
set WshShell = CreateObject("WScript.Shell")
WshShell.Run "Resources\Sleep.vbs",1,True
WshShell.Run "App\TSP.hta"
Window.Close
End Function
</script>
<script language="javascript">
window.resizeTo(400,200);
starterwidth = 400;
starterheight = 200;
screenwidth = screen.width;
screenheight = screen.height;
swidth = starterwidth / 2
sheight = starterheight / 2
scwidth = screenwidth / 2;
scheight = screenheight /2;
poswidth = scwidth - swidth;
posheight = scheight - sheight;
window.moveTo(poswidth, posheight);
</script>
<HTA:APPLICATION ID="TSPL"
width="400"
hight="200"
application="yes"
applicationName="Loader"
border="none"
borderStyle="normal"
caption="yes"
contextMenu="yes"
icon="TSP.ico"
innerBorder="no"
maximizeButton="yes"
minimizeButton="yes"
navigable="yes"
scroll="no"
scrollFlat="no"
selection="no"
showInTaskBar="no"
singleInstance="yes"
sysMenu="yes"
version="1.0" />
</head>
<body background="icons/startup.png">
<script language="vbscript">
Load
</script>
</body>
</html>