Welcome to WebmasterWorld Guest from 54.145.44.134

Forum Moderators: open

Message Too Old, No Replies

Pop-up window after NT/2000 logon

Pop-up window after NT/2000 logon

     

Goodfella

3:34 pm on May 1, 2003 (gmt 0)

10+ Year Member



I am a Network Manager for a Windows NT network (shortly to upgrade to Windows 2000). I am very keen to implement a small Internet Explorer pop-up window after the user has logged on without the user having to manually open Internet Explorer. Is this possible? How easy is this task?

RonPK

3:46 pm on May 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can easily add a URL as a shortcut to the Start Up-folder. That should open the specified location on logon. You could use Javascript to resize the window to the desired size ( <body onLoad="resizeTo(300,50)"> ).

Hope this helps!

Welcome to WebmasterWorld, by the way...

[edited by: RonPK at 3:47 pm (utc) on May 1, 2003]

korkus2000

3:46 pm on May 1, 2003 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Will they be directed to the same page everytime after login or will they be able to enter at any page?

Goodfella

7:41 am on May 2, 2003 (gmt 0)

10+ Year Member



Wow, thanks for the very swift response. To be perfectly honest I wasn't holding out much hope of a reply as soon as that!

Would this window be able to be manipulated in such a way as to just show the window and no buttons or menu items? As I am very very new to JavaScript, where in my HTML code would this JS go?

Could a Cookie also be used so that the user can choose whether to have this window show again after logon or not? Sorry to be a pain.

Justin

RonPK

8:49 am on May 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Would this window be able to be manipulated in such a way as to just show the window and no buttons or menu items?

Not with ordniary JavaScript. Maybe there is some magic IE-only code out there, but I'm not too familiar with that.

> Could a Cookie also be used so that the user can choose whether to have this window show again after logon or not?

No. The browser has to be started in order to read the cookie.

Maybe you could elaborate on what the purpose of the window is, so the folks here can come up with suggestions. (and maybe you could answer Korkus's question...)

Goodfella

9:44 am on May 2, 2003 (gmt 0)

10+ Year Member



This page will just show my users some common hyperlinks to some external web-pages (we are firewalled). It will also show scrolling effects for daily announcements etc. This page will be the same every time so I don't want the users to be able to change this page.

Goodfella

7:59 am on May 9, 2003 (gmt 0)

10+ Year Member



I have managed to find some code that looks something like the following:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWin(URL) {
aWindow=window.open(URL,"thewindow","toolbar=no,width=350,height=400,status=no,scollbars=yes,resize=no,menubar=no");
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="javascript:openWin('mozart.html');">
</BODY>
</HTML>

This brings up a large page with a pop-up window. I would like to get rid of the large page behind this pop-up window. Is there anybody out there that could help me with this code? Is there anything in JavaScript or do I need Visual Basic code?

Justin Medcraft

Sinner_G

8:10 am on May 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What you are doing there is a regular popup window. Try replacing your <body> tag with the one suggested by RonPK in msg #2.

Sinner

Goodfella

8:27 am on May 9, 2003 (gmt 0)

10+ Year Member



Excellent. Thank you. Now that i've got that sorted out, how can I make it a true pop-up by taking off the toolbar, status bar etc.?

Thank you in advance.

Justin Medcraft

Sinner_G

12:07 pm on May 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Now that's the problem. There is (AFAIK) no way to do that. I think you have to choose between having the bars or having a big window launching a small one.

Sinner

P.S.: If you nevertheless find a way to do it, please keep us posted.

Goodfella

2:44 pm on May 9, 2003 (gmt 0)

10+ Year Member



A colleague of mine has found a solution that I hope you will all like. He has used a .hta format that will bring a true pop-up window for all sites. The following is an example of this .hta format:

<html>
<head>
<title>macsta HTA Test</title>
<HTA:APPLICATION
ID = "Blandford pop UP"
APPLICATION NAME = "MAC"
BORDER = "thin"
CAPTION = "yes"
SHOWINTASKBAR ="no"
SINGLEINSTANCE = "yes"
SYSMENU = "YES"
WINDOWSTATE = "normal"
SCROLL = "NO"
SCROLLFLAT ="yes"
VERSION = "1"
INNERBORDER = "NO"
SELECTION = "NO"
MAXIMIZEBUTTON = "yes"
MINIMIZEBUTTON = "yes"
NAVIGABLE = "YES"
CONTEXTMENU = "NO"
BORDERSTYLE = "NORMAL"
>

</head>

<body ONLOAD="resizeTo(400,400)">

This will not work directly from a web-page, but will work from the desktop (ie. logon script).

Hope this helps.

macrost

7:06 pm on May 9, 2003 (gmt 0)

10+ Year Member




function openWin(URL) {
aWindow=window.open(URL,"thewindow","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=yourvalue,height=yourvalue");
 

Featured Threads

Hot Threads This Week

Hot Threads This Month