473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Splash Screen Hta

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:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. <head>
  4.  
  5. <title>Loading...</title>
  6.  
  7. <script language="vbscript">
  8. Function load
  9.     set WshShell = CreateObject("WScript.Shell")
  10.     WshShell.Run "Resources\Sleep.vbs",1,True
  11.     WshShell.Run "App\TSP.hta"
  12.     Window.Close
  13. End Function
  14. </script>
  15.  
  16. <script language="javascript">
  17. window.resizeTo(400,200);
  18.  
  19. starterwidth = 400;
  20. starterheight = 200;
  21.  
  22. screenwidth = screen.width;
  23. screenheight = screen.height;
  24.  
  25. swidth = starterwidth / 2
  26. sheight = starterheight / 2
  27.  
  28. scwidth = screenwidth / 2;
  29. scheight = screenheight /2;
  30.  
  31. poswidth = scwidth - swidth;
  32. posheight = scheight - sheight;
  33.  
  34. window.moveTo(poswidth, posheight);
  35. </script>
  36.  
  37. <HTA:APPLICATION ID="TSPL" 
  38.     width="400"
  39.     hight="200"
  40.     application="yes"
  41.     applicationName="Loader" 
  42.     border="none"
  43.     borderStyle="normal"
  44.     caption="yes"
  45.     contextMenu="yes"
  46.     icon="TSP.ico"
  47.     innerBorder="no"
  48.     maximizeButton="yes"
  49.     minimizeButton="yes"
  50.     navigable="yes"
  51.     scroll="no"
  52.     scrollFlat="no"
  53.     selection="no"
  54.     showInTaskBar="no"
  55.     singleInstance="yes"
  56.     sysMenu="yes"
  57.     version="1.0" />
  58.  
  59. </head>
  60.  
  61. <body background="icons/startup.png">
  62. <script language="vbscript">
  63. Load
  64. </script>
  65.  
  66. </body>
  67.  
  68. </html>
  69.  
Thank you.
Dec 23 '07 #1
0 1341

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: andrewcw | last post by:
I implemented the simplest of splash screens ( static and on its own thread ). But it seem that when first called maybe 8 seconds elapsed before it showed up, the main form follows several seconds...
1
by: BillZondlo | last post by:
Can someone look at this and tell me why, when I call this from my main app, it displays fine (fades form in and out) but then before my main app displays, I see other dialog boxes flash...
14
by: SStory | last post by:
I am trying to make a splash screen for my vb.net app. It is an mdi app. including the splash code produces wierd results. not inluding makes things fine. Also have tried loading the splash...
2
by: Joe Cool | last post by:
Using VB in VS2005. 2005 has a new way to implment a spash screen that alleviates the need for hardly any code. But I have found that when a GUI that has a splash screen is run as a scheduled task,...
1
by: Ken Allen | last post by:
I am developing a small utility program that must perform a considerable amount of 'background' or 'research' work before it can display any user interface. In general it can take 3-15 seconds to...
5
by: steve | last post by:
Hi All I have a form set as the splash screen in VB.net 2005 application properties How can I tell when it has or is closing, as I want to then run some licence checking code without the...
2
by: will_456 | last post by:
In vb2005 Express: In My Project Application Splash Screen I have selected my splash screen form. The form opens on project startup but closes immediately before anyone would have time to read...
1
by: BRAHM | last post by:
I am using this code to set up the splash screen startup time. Protected Overrides Function OnInitialize( _ ByVal commandLineArgs As _ System.Collections.ObjectModel.ReadOnlyCollection(Of...
2
by: Newbie | last post by:
Hi, In the application properties of my vb.net 2008 project I have set one of my forms to be the splash screen. How do I increase the time the splash screen is displayed for. It vanishs to...
0
by: AlarV | last post by:
Hey everyone! I've been trying to create a Splash Screen in my Java program. I've managed to make the splash screen show itself, with the program. I now want to make it show first, and then show my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.