General discussion

Locked

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.

5 total posts (Page 1 of 1)  
| 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.
<HTML>

<HEAD>
<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;
}
-->
</style></HEAD>

</SCRIPT>
<!-- End of image display part -->
<SCRIPT>
window.resizeTo(300,300);
</SCRIPT>

<BODY>

<P></P>
<!-- 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.-->
<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";
// 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 window.open 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(){
//ADD SCRIPT HERE
}
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=window.open(document.location + "?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;
self.parent.close()

</script>

Collapse -

by sonnaccino In reply to

Thanks!
Poster rated this answer.

Collapse -

by sonnaccino In reply to Webpage Design

This question was closed by the author

Back to Desktop Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums