473,490 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Splash Screen Hta

1 New Member
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 1352

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

Similar topics

3
2250
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
3582
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
6676
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
2093
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
2237
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
6381
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
4189
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
1555
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
15992
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
1267
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
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.