...

View Full Version : please i want script



e3saaar
06-03-2003, 08:25 PM
hi

can any one help me please
there is any java script detect my display setting and use it to
for example
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

get screen(w,h)

if (w=800) && (h=600)
open(index_800_600.htm)
else if (w=1024) && (h=768)
open(index_1024_768.htm)
}


:) :) :)

thanx alot

requestcode
06-03-2003, 08:39 PM
If you had searched the Free Scripts Section you would have found this script:
http://www.javascriptkit.com/script/cut162.shtml

Vladdy
06-03-2003, 08:53 PM
And what happens on my display which is 1600x1200 :rolleyes: :rolleyes:

e3saaar
06-04-2003, 01: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:

Arctic Fox
06-04-2003, 01:57 AM
e3saaar, why are your scrollbars on the right side of your pages?

Wouldn't this be better for your viewers/language?:

<html dir="rtl">

:D

And you could remove this part:
<p align="right">

:thumbsup:

Vladdy
06-04-2003, 03: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.

Arctic Fox
06-04-2003, 03:58 AM
I don't think there's a screen reader for the language on e3saaar's site! :eek:

Kor
06-04-2003, 10:45 AM
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.)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum