network login - create a splash screen
#1
network login - create a splash screen
What's the best way to display a small splash screen when a user logs into the network.
I was wondering if there's any software that can take a jpg or similar and turn it into a stand-alone .exe that displays itself on the user's desktop for say 5 secs?
Any alternative methods would be welcome also ?
I was wondering if there's any software that can take a jpg or similar and turn it into a stand-alone .exe that displays itself on the user's desktop for say 5 secs?
Any alternative methods would be welcome also ?
#3
#4
Seem to remember you can apply text based things through active directory/group policy. You could probably use a logon script to display a jpg. Can't remember the policies required, but am sure google will!
#6
Scooby Regular
Join Date: Dec 2002
Location: Couch Spud
Posts: 9,277
Likes: 0
Received 0 Likes
on
0 Posts
KiX maybe able to do something, but it will be after login, as that is when the scripts run
Novell with their client, allowed you to change the Novell bitmap in the logon box to anything else you wanted
Novell with their client, allowed you to change the Novell bitmap in the logon box to anything else you wanted
#7
Copy the following text and save it in a file called splash.hta
Change the following :
img src = where your image is located.
WINDOWSTATE = normal for default, or maximise for full screen.
iTimerID has 5000, this is how long in millisecond you want it to display.
body bgcolor can be changed to suit your image.
It's an HTA file, which is HTML application. So it runs a mix of HTML and VBS. Basically you can create whatever you want with them.
Just make sure that image file is accessible and then call this from a logon script. Depending on the size of your splash screen it could go on SYSVOL or be kept locally.
<html>
<head>
<title>Splash Screen</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="splash"
BORDER="none"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal"
</head>
<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
Sub ShowSplash
Splash.Style.Display = "None"
Window.Close()
End Sub
</SCRIPT>
<body bgcolor="black">
<DIV id="Splash">
<CENTER>
<p>
<img src="C:\Windows\winnt256.bmp"/>
</p>
</CENTER>
</DIV>
</body>
</html>
<head>
<title>Splash Screen</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="splash"
BORDER="none"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal"
</head>
<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
Sub ShowSplash
Splash.Style.Display = "None"
Window.Close()
End Sub
</SCRIPT>
<body bgcolor="black">
<DIV id="Splash">
<CENTER>
<p>
<img src="C:\Windows\winnt256.bmp"/>
</p>
</CENTER>
</DIV>
</body>
</html>
img src = where your image is located.
WINDOWSTATE = normal for default, or maximise for full screen.
iTimerID has 5000, this is how long in millisecond you want it to display.
body bgcolor can be changed to suit your image.
It's an HTA file, which is HTML application. So it runs a mix of HTML and VBS. Basically you can create whatever you want with them.
Just make sure that image file is accessible and then call this from a logon script. Depending on the size of your splash screen it could go on SYSVOL or be kept locally.
Trending Topics
#9
Well I never, it bloomin works. Looks great!
Thanks KiwiGTI!! Good work fella
Is there any way to change the window dimensions to match the image ?
Ignore last comment - just found an example .hta with window dimensions I can change to suit.
Thanks KiwiGTI!! Good work fella
Is there any way to change the window dimensions to match the image ?
Ignore last comment - just found an example .hta with window dimensions I can change to suit.
Last edited by spectrum48k; 08 November 2007 at 11:17 PM.
#10
can't seem to get the window to size at all. I'm using Firefox 2.0 and IE7
<html>
<head>
<title>Splash Screen</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="splash"
BORDER="none"
INNERBORDER="no"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal"
<script language="javascript">
//Define the splash window size.
var splashWindowWidth = 200;
var splashWindowHeight = 100;
//Calculate the splash window location.
splashWindowLeft = (window.screen.availWidth - splashWindowWidth) / 2;
splashWindowTop = (window.screen.availHeight - splashWindowHeight) / 2;
//Center the splash window on the screen.
window.moveTo(splashWindowLeft, splashWindowTop);
window.resizeTo(splashWindowWidth, splashWindowHeight);
//called on the body's onLoad() event
function nextScreen()
{
//var oShell = new ActiveXObject("WScript.Shell");
//oShell.Run("autorun.exe");
self.close();
}
</script>
</head>
<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
Sub ShowSplash
Splash.Style.Display = "None"
Window.Close()
End Sub
</SCRIPT>
<body bgcolor="black">
<DIV id="Splash">
<CENTER>
<p>
<img src="C:\splash.gif"/>
</p>
</CENTER>
</DIV>
</body>
</html>
<html>
<head>
<title>Splash Screen</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="splash"
BORDER="none"
INNERBORDER="no"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal"
<script language="javascript">
//Define the splash window size.
var splashWindowWidth = 200;
var splashWindowHeight = 100;
//Calculate the splash window location.
splashWindowLeft = (window.screen.availWidth - splashWindowWidth) / 2;
splashWindowTop = (window.screen.availHeight - splashWindowHeight) / 2;
//Center the splash window on the screen.
window.moveTo(splashWindowLeft, splashWindowTop);
window.resizeTo(splashWindowWidth, splashWindowHeight);
//called on the body's onLoad() event
function nextScreen()
{
//var oShell = new ActiveXObject("WScript.Shell");
//oShell.Run("autorun.exe");
self.close();
}
</script>
</head>
<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
Sub ShowSplash
Splash.Style.Display = "None"
Window.Close()
End Sub
</SCRIPT>
<body bgcolor="black">
<DIV id="Splash">
<CENTER>
<p>
<img src="C:\splash.gif"/>
</p>
</CENTER>
</DIV>
</body>
</html>
Last edited by spectrum48k; 08 November 2007 at 11:51 PM.
#11
Try substituting this section.
Change as necessary
Sub Window_Onload
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
For Each objItem in colItems
intHorizontal = objItem.ScreenWidth
intVertical = objItem.ScreenHeight
Next
intLeft = (intHorizontal - 800) / 2
intTop = (intVertical - 600) / 2
window.resizeTo 800,600
window.moveTo intLeft, intTop
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
For Each objItem in colItems
intHorizontal = objItem.ScreenWidth
intVertical = objItem.ScreenHeight
Next
intLeft = (intHorizontal - 800) / 2
intTop = (intVertical - 600) / 2
window.resizeTo 800,600
window.moveTo intLeft, intTop
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
Last edited by KiwiGTI; 09 November 2007 at 09:45 AM.
#12
Thanks Kiwi
I'm getting a problem testing from my WinXP desktop but I think there's code in there that's probably server specific, so I'll try it on the Win2kserver later on - besides, you've shown me what I need, and I've now got the building blocks to do what I need.
Thanks again.
I'm getting a problem testing from my WinXP desktop but I think there's code in there that's probably server specific, so I'll try it on the Win2kserver later on - besides, you've shown me what I need, and I've now got the building blocks to do what I need.
Thanks again.
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM