473,394 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Text Size

On my websites index.html page I have this script:
<SCRIPT language="JavaScript">
<!-- //
if ((screen.width==1024) && (screen.height==768))
{
document.write('<a href="active.html">Click here</a> to Enter Railways
Online);
}
else
{
document.write('This site is Best Viewed with a 1024x768 resolution. If
you want to get the best of this site, please alter your settings, otherwise
<a href="active.html">Click here</a> to enter');
}
//-->
</SCRIPT>
Which, If the resoultion is not 1024x768 will display the bottom message,
telling them to change their settings, if it is will display the top message
with just an entry link.
Is there a way of changing this so it will display the top message if the
Screen Resolution is 1024x768 and the text size is Medium.
Thanks in Advance,
Joe
--
To reply direct, Remove NOSPAM and Replace with 21fun
For the latest News, Information and Photos check out
http://www.railwaysonline.co.uk
Jul 20 '05 #1
5 4083
No.

Joe Patrick wrote:
On my websites index.html page I have this script:
<SCRIPT language="JavaScript">
<!-- //
if ((screen.width==1024) && (screen.height==768))
{
document.write('<a href="active.html">Click here</a> to Enter Railways
Online);
}
else
{
document.write('This site is Best Viewed with a 1024x768 resolution. If
you want to get the best of this site, please alter your settings, otherwise
<a href="active.html">Click here</a> to enter');
}
//-->
</SCRIPT>
Which, If the resoultion is not 1024x768 will display the bottom message,
telling them to change their settings, if it is will display the top message
with just an entry link.
Is there a way of changing this so it will display the top message if the
Screen Resolution is 1024x768 and the text size is Medium.
Thanks in Advance,
Joe
--
To reply direct, Remove NOSPAM and Replace with 21fun
For the latest News, Information and Photos check out
http://www.railwaysonline.co.uk


Wait, so my desktop (because screen.height/width is the dimensions of my
/desktop/, not the /browser/) of 1600 x 1200 is no good for your web site? You
want me to REDUCE my desktop size to best view your web site? What about all
those middle-aged people running 800 x 600 desktops on 15" monitors? You want
them to increase their desktop resolution to 1024 x 768 and go blind in the
process because that's what your web site happens to look best at?

(subliminal message: <url: http://allmyfaqs.com/faq.pl?AnySizeDesign />)

STOP TRYING TO CONTROL THE USER'S ENVIRONMENT.

(subliminal message: <url: http://allmyfaqs.com/faq.pl?AnySizeDesign />)

Make your web site look good (or reflow reasonably) at all resolutions and all
font sizes.

Not so subliminal message: GO HERE: <url:
http://allmyfaqs.com/faq.pl?AnySizeDesign />

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #2
Joe Patrick wrote:
Bad HTML. That should be <SCRIPT type="text/javascript">
Works fine as it is.


http://diveintomark.org/archives/200..._wont_help_you
By medium I mean the option that you can select from View > Text Size


View > what? No "Text Size" here, there's "Text Zoom", but that menu doesn't
have medium on it.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #3
> http://diveintomark.org/archives/200..._wont_help_you
By medium I mean the option that you can select from View > Text Size
View > what? No "Text Size" here, there's "Text Zoom", but that menu

doesn't have medium on it.


On IE there is a Text Size under the View Menu
Jul 20 '05 #4
Joe Patrick wrote:
http://diveintomark.org/archives/200..._wont_help_you

By medium I mean the option that you can select from View > Text Size


View > what? No "Text Size" here, there's "Text Zoom", but that menu


doesn't
have medium on it.

On IE there is a Text Size under the View Menu


What of those of us that choose to use browsers other than (and usually
superior to) Internet Explorer, and therefor edo not have those options?
For example, I have View -> Increase Text Size and View -> Decrease Text
Size in my browser of choice (Mozilla FIrebird).

Herein lies the point the others have been making. You are unnecessarily
limited your audience. If your photos are large, that's fine -- those
that wish to view all of a particular photo will scroll as needed to
view it. The most you really need to do is place a small warning at the
entry point that "some photos contained in this site are large. They may
require extended download times and scrolling to view in their entirety."

Simple as that.

--

*** Remove the DELETE from my address to reply ***

==================================================
Kevin Scholl
ks*****@comcast.DELETE.net
--------------------------------------------------
Web Development and Graphic Design
http://www.interimag.com/~kscholl/professional/
--------------------------------------------------
We are the music makers, and we are the dreamers
of the dreams...
==================================================

Jul 20 '05 #5
Joe Patrick wrote:
> By medium I mean the option that you can select from View > Text Size
View > what? No "Text Size" here, there's "Text Zoom", but that menu
doesn't have medium on it.
On IE there is a Text Size under the View Menu


Not everybody uses MSIE, that's the point I'm making.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
6
by: Lance Geeck | last post by:
I have a simple form where I am using a dataset called Client. On the data entry screen, there are name, address, city state and zip. I have the fields bound to the dataset field. (Properties...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
3
by: jonniethecodeprince | last post by:
Hi all, I have trouble getting an array of data stored in a separate javascript file i.e. a file called books.js into a table of data for a .xhtml file. There are 50 Records in this file....
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
7
by: kirkgilbert | last post by:
I am trying to do an onchange event in a form using a text field. The form is tied to a record set that is part of a repeated region. One the first record when I edit the data it works perfectly. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.