Solved

Different Resulution(pixle width) Between Developer PC and Client Browser PC

Posted on 2000-03-21
4
243 Views
Last Modified: 2013-12-25
I write html files on a pc with resulution of 1024x768.When I read it in another pc with IE5 and resulution of 800x600 it occupies more than full screen and I hav to nevigate with scroll bars to see the whole document.Is ther a way in design time to prevent that?

Thanks In Advance

Izack Lesher
0
Comment
Question by:lesher
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
damianosky earned 200 total points
ID: 2644150
The Javascript 1.2 object Screen has the properties:

availHeigth : the available height of the screen
availWidth : the available width of the screen
width : the total width of the screen, in pixels
height: the total height of the screen, in pixels

wich maintain information about the screen on which the browser is displayed.

You can access the e.g.:

var f = screen.height;

and so on.



0
 
LVL 1

Expert Comment

by:damianosky
ID: 2644168
There are also some other usefull properties of the screen object:

screen.availLeft : the first available pixel on the left

screen.availTop : the first available pixel on the top

screen.colorDepth: the depth of the browser's color palette

screen.pixelDepth: the bits-per-pixel value for the screen

Javascript programs can use this information to optimize output. Keep in min, however, that this are properties of the object "screen" which is an object of Javascript 1.2 specification.

Older browsers can access this object and there's no other method to get these informations.

I suggest you to check browser compatibility through the code i've already posted here in Exp-Exc in Front Page topic for the question "IE and Netscrape....".


0
 

Author Comment

by:lesher
ID: 2644288
Regarding your answer,Can I control these parameters inside Front Page Editor 2000 with GUI or do I have to code it in HTML?

Thanks again

Izack Lesher
0
 
LVL 1

Expert Comment

by:damianosky
ID: 2644332
If you mean that in the preview mode you can already use the properties, the answer is yes.

In fact, FrontPage use in preview mode tha same activeX (or COM component, if you prefer so) of Internet Explorer (5.0). Infact, when you install Office 2000, you must update to Explorer 5.0.

On the contrary, i don't remember if there is a wizard which allow you to control these properties (and i've never searched for it, honestly) like some properties of CSS.

At a first look, i don't think there's one, also because this is a Javascript feature, and also with CSS FP2000 don't allow much easy control.


0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question