General discussion


Webpage Design

By sonnaccino ·
I have a webpage that has our lobbycam surveylance video feed running. I would like for it to open to a small, fitted page with no IE menu, toolbars, or address bar. Is it possible? I'm willing to use a redirect page, but when I've done that it seems to ignore the javascript that would normally open the page to 300 x 300 and hide the toolbars. . .

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by deepsand In reply to Webpage Design

What browser are you using?

And, can you provide the source code for the page in question?

Collapse -

by sonnaccino In reply to Webpage Design

We're using Internet Explorer.

<META HTTP-EQUIV="Content-Language" CONTENT="en-us">
<META NAME="GENERATOR" CONTENT="Microsoft FrontPage 5.0">
<META NAME="ProgId" CONTENT="FrontPage.Editor.Document">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>New Page 1</TITLE>

<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;

<!-- End of image display part -->


<!-- Cut from here to the end of image display comment -->
<!-- Note: If you do not see a JavaScript below in the view source window you must -->
<!-- first save the html file from your browser, then open the saved -->
<!-- file in a text editor, for instance Notepad.-->
// Set the BaseURL to the url of your camera
// Example: var BaseURL = "";
// Since this file is located inside the unit itself, no base url is specified here
var BaseURL = "http://lobbycam/";

// DisplayWidth specifies the displayed width of the image.
// You may have any number here, the effect will be horizontal
// strech or shrink of the image
var DisplayWidth = "320";

// DisplayHeight specifies the displayed width of the image.
// You may have any number here, the effect will be vertical
// strech or shrink of the image
var DisplayHeight = "240";

// This is the filepath to the video generating file inside the camera itself
var File = "axis-cgi/mjpg/video.cgi?resolution=320x240";

// No changes required below this point

var output = "";
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
// If Internet Explorer for Windows then use ActiveX
output = "<OBJECT ID=\"CamImage\" WIDTH="
output += DisplayWidth;
output += " HEIGHT=";

Collapse -

by Furqan Asrar In reply to Webpage Design

At the moment you are using window.resize If you would like to open a new window you should use instead... I noticed an open </script> tag with no beginning, you should get rid of that...
Apparantly the script isn't complete and I'm guessing you do have the complete version. I would recommend you include the whole script in one function such as:
function cam(){
and then on the body tag add:
<body onload="cam();">

you can also use this code:
<script type='text/javascript'>

var height = 400 //Set height
var width = 400 //Set width
var name = "winname" //Set window name
var top = 20 //Set distance from top
var left = 20 //Set distance from bottom + "?newwin=true", name, "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
self.parent = self;


Collapse -

by sonnaccino In reply to

Poster rated this answer.

Collapse -

by sonnaccino In reply to Webpage Design

This question was closed by the author

Related Discussions

Related Forums