View Full Version : please i want script
06-03-2003, 07:25 PM
can any one help me please
there is any java script detect my display setting and use it to
check if my display is 800 by 600 pix it will open the page which contains 800 by 600 properties
or if my display is 1024 by 768 pix it will open the page which contains 1024 by 768 properties
this is the algorithem which i want to find a java script for it
if (w=800) && (h=600)
else if (w=1024) && (h=768)
:) :) :)
06-03-2003, 07:39 PM
If you had searched the Free Scripts Section you would have found this script:
06-03-2003, 07:53 PM
And what happens on my display which is 1600x1200 :rolleyes: :rolleyes:
06-04-2003, 12:09 AM
thanx alot Mr requestcode :D :D
thank you my frind :thumbsup:
for Mr Vladdy
for your display which is 1600x1200 i think you will put third choise which is for this 1600x1200 pix :rolleyes: :rolleyes:
06-04-2003, 12:57 AM
e3saaar, why are your scrollbars on the right side of your pages?
Wouldn't this be better for your viewers/language?:
And you could remove this part:
06-04-2003, 02:18 AM
What about those who use screen readers ad do not have any resolution at all???
You are missing a point: you can not predict all the possible ways (and resolutions) which may be used to access a web page. Your design should be such that it can be accessed and understood regardless of screen resolution.
06-04-2003, 02:58 AM
I don't think there's a screen reader for the language on e3saaar's site! :eek:
Use one of the following:
screen.availHeight - the height of the screen in pixels minus any GUI stuff such as the windows taskbar
screen.availWidth - the width of the screen in pixels minus any GUI stuff such as the windows taskbar
screen.height - the height of the screen in pixels
screen.width - the width of the screen in pixels
Using screen.availHeight or screen.availWidth is better, as it does not matter which resolution is.
But you must test it on your own to find out the difference in pixels, because some GUI use large, other use small icons or text in browsers upper taskbar. I use something like that in http://www.ipso.ro/renault_vi/index.html to extend vertically the iframe on the whole available Height of the browser (I worked for the maximum height of the browser upper taskbar, with large icons and text labels.)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.