Splash Screen

Author Message
TNO

  • Total Posts : 2094
  • Scores: 36
  • Reward points : 0
  • Joined: 12/18/2004
  • Location: Earth
  • Status: offline
Splash Screen Wednesday, December 13, 2006 9:05 AM (permalink)
0
One of the first languages I learned was Visual Basic 5, and one of the things I missed about it was having a cool looking splash screen for my program to give it that professional look. Well, just because you're using a scripting language doesn't mean you can't have one too:

 <html>
 <head>
 <title>Splash Screen</title>
 <script type="text/jscript">
 var oPopup = window.createPopup()
 function goContext(){
  var oPopupBody = oPopup.document.body;
 
  oPopupBody.innerHTML = oContext.innerHTML;
  oPopup.show(275, 200, 400, 300, document.body);
  document.body.onmousedown = oPopup.hide;
 }
 </script>
 </head>
 
 <body onload="goContext()">
       <!-- Splash Screen //-->
       <div ID="oContext" style="display:none" onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
           <div style="position:absolute; top:0; left:0; width:400px; height:300px; border:1px solid black;background:#eeeeee; onselectstart="return false" ondragstart="return false" oncontextmenu="return false"> 
               <div style="padding:20px; background:white; border-bottom:5px solid #cccccc" onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
                   <b onselectstart="return false" ondragstart="return false" oncontextmenu="return false"><h2 align="center"><i>TheNewObjective </i><small><sub>ver: 1.00</sub></small></h2></b>
               </div>
               <div style="padding:20px; font-size:8pt; line-height:1.5em; font-family:verdana; color:black;" onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
                   <center onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
                       <marquee DIRECTION="UP" HEIGHT="100" WIDTH="300" SCROLLAMOUNT="1" onselectstart="return false">
                           This program was created as a supplemental tool,
                           not a replacement for existing systems.    This program
                           is free software; you can redistribute it and/or modify
                           it under the terms of the GNU General Public License
                           as published by the Free Software Foundation; either
                           version 2 of the License, or any later version. This
                           program is distributed in the hope that it will be
                           useful, but WITHOUT ANY WARRANTY; without even the
                           implied warranty of MERCHANTABILITY or FITNESS for
                           A PARTICULAR PURPOSE. See the GNU General Public
                           License for more details.
                       </marquee>
                       <br /><br />
                       <b>&#169;2006-2007 TNO Development.</b></center>
               </div>
           </div>
       </div>
 <center><button onclick="goContext()">Show Splash Screen</button><br><b>Internet Explorer Only!</b></center>
 </body>
 </html>
 


And of course, the VBScript version:

 <html>
 <head>
 <title>Splash Screen</title>
 <script type="text/vbscript">
 Dim oPopup
 Set oPopup = window.createPopup()
 Function goContext()
  Dim oPopupBody
  Set oPopupBody= oPopup.document.body
  oPopupBody.innerHTML = oContext.innerHTML
  call oPopup.show(275, 200, 400, 300, document.body)
 End Function
 </script>
 </head>
 
 <body onload="goContext()" onmousedown="oPopup.hide">
       <!-- Splash Screen //-->
       <div ID="oContext" style="display:none" onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
           <div style="position:absolute; top:0; left:0; width:400px; height:300px; border:1px solid black;background:#eeeeee; onselectstart="return false" ondragstart="return false" oncontextmenu="return false"> 
               <div style="padding:20px; background:white; border-bottom:5px solid #cccccc" onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
                   <b onselectstart="return false" ondragstart="return false" oncontextmenu="return false"><h2 align="center"><i>TheNewObjective </i><small><sub>ver: 1.00</sub></small></h2></b>
               </div>
               <div style="padding:20px; font-size:8pt; line-height:1.5em; font-family:verdana; color:black;" onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
                   <center onselectstart="return false" ondragstart="return false" oncontextmenu="return false">
                       <marquee DIRECTION="UP" HEIGHT="100" WIDTH="300" SCROLLAMOUNT="1" onselectstart="return false">
                           This program was created as a supplemental tool,
                           not a replacement for existing systems.    This program
                           is free software; you can redistribute it and/or modify
                           it under the terms of the GNU General Public License
                           as published by the Free Software Foundation; either
                           version 2 of the License, or any later version. This
                           program is distributed in the hope that it will be
                           useful, but WITHOUT ANY WARRANTY; without even the
                           implied warranty of MERCHANTABILITY or FITNESS for
                           A PARTICULAR PURPOSE. See the GNU General Public
                           License for more details.
                       </marquee>
                       <br /><br />
                       <b>&#169;2006-2007 TNO Development.</b></center>
               </div>
           </div>
       </div>
 <center><button onclick="goContext()">Show Splash Screen</button><br><b>Internet Explorer Only!</b></center>
 </body>
 </html>
 


Cool effects don't have to be hard
<message edited by TNO on Friday, February 22, 2008 9:49 AM>
To iterate is human, to recurse divine. -- L. Peter Deutsch
 
#1
    hoskinsm

    • Total Posts : 14
    • Scores: 0
    • Reward points : 0
    • Joined: 1/6/2006
    • Status: offline
    RE: DeCOMtamination: Splash Screen Monday, February 18, 2008 5:40 AM (permalink)
    0
    TNO....
     
    I have come across this posting in search of the following:
     
    I am looking to implement a Splash Screen within an HTA window_onload, which will fade in and fade out.  I am using VBScript.  I can get the splash screen to work but would really like to implement the fade IN and fade OUT which I cannot seem to find any information on or any examples....except in VB and that is way beyond me.
     
    I like what you have done with this splash screen....can we make it fade in and out?
     
    Thank you in advance for your assistance and for posting of the below code in vbscript...
     
    Moe
     
    #2
      TNO

      • Total Posts : 2094
      • Scores: 36
      • Reward points : 0
      • Joined: 12/18/2004
      • Location: Earth
      • Status: offline
      RE: DeCOMtamination: Splash Screen Friday, February 22, 2008 9:48 AM (permalink)
      0
      Unless you're using windows Vista, its not possible to implement a true fading effect nor a true transparency effect.

      The best you can do is fake it using a <div> or <img> tag inside your page and manipulating it using the DOM/CSS opacity effects.

      If you're using windows Vista, let me know and I'll see if I can whip something simple up. (Vista lets you use transparent PNGs as backgrounds which let you TRULY see through html pages)
      To iterate is human, to recurse divine. -- L. Peter Deutsch
       
      #3
        hoskinsm

        • Total Posts : 14
        • Scores: 0
        • Reward points : 0
        • Joined: 1/6/2006
        • Status: offline
        RE: DeCOMtamination: Splash Screen Friday, March 14, 2008 1:20 AM (permalink)
        0
        Thanks for the reply!!
         
        Not sure how to answer Vista or not Vista as I am using Windows PE 2.0 which is based on Vista, versus the prior version of PE which were based on XP.
         
        If there is anything you can provide as a test of the fading without getting fancy, I will give it a shot.
         
        Thanks,
        Moe
         
        #4
          TNO

          • Total Posts : 2094
          • Scores: 36
          • Reward points : 0
          • Joined: 12/18/2004
          • Location: Earth
          • Status: offline
          RE: DeCOMtamination: Splash Screen Friday, March 14, 2008 6:04 AM (permalink)
          0
          Create, or find a PNG image somewhere with a transparency effect and save it to your desktop. If you can see through the picture to your background, then you know. (GIFs with transparency don't work and instead show that ugly hot pink pink color instead of transparency)
          To iterate is human, to recurse divine. -- L. Peter Deutsch
           
          #5
            hoskinsm

            • Total Posts : 14
            • Scores: 0
            • Reward points : 0
            • Joined: 1/6/2006
            • Status: offline
            RE: DeCOMtamination: Splash Screen Friday, March 14, 2008 11:10 AM (permalink)
            0
            I have located a PNG with transparency but with WinPE, there is no desktop, just the scripting environment that supports scripting, HTA, WMI. 
             
            #6
              TNO

              • Total Posts : 2094
              • Scores: 36
              • Reward points : 0
              • Joined: 12/18/2004
              • Location: Earth
              • Status: offline
              RE: Splash Screen Friday, March 14, 2008 11:52 AM (permalink)
              0
              Hmm, do you have any idea if WPF is supported?

              Generally Vista uses the Windows Sidebar to load html files with a transparent PNG background to allow you to create widgets and such.

              http://www.odetocode.com/Articles/463.aspx
              <message edited by TNO on Saturday, March 15, 2008 11:24 AM>
              To iterate is human, to recurse divine. -- L. Peter Deutsch
               
              #7

                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9