Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2000-03-21
4
Medium Priority
?
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
damianosky earned 600 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

722 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