Solved

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

Posted on 2000-03-21
4
233 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now