Solved

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

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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Domain Service Not Responding 14 47
auto play video on web page 4 59
How to build a web site 17 103
HTTPS for signup & login - HTTP for all other pages 10 86
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to dynamically set the form action using jQuery.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

751 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