C
Chas D
Is there an html code that will size a web page to fit all monitors?
Thanks in advance,
Chas D
Thanks in advance,
Chas D
odyssey said:Hi! monitors no. screen resolutions YES.
In general using 100% page width will automaticcaly adjust the page to the
users screen size.
But in the case of a picture background that is not a static you will notice
that when you load the page in different screen resolutions that it will not
fit the entire screen or it will be to big and the user will have to scroll
left to right to see the whole image.
I don't no if FP 2003 has a auto stretch feature but doing this to a picture
of a person or of the sort would make the picture blurry or distorted.
One answer to this specific situation is to make 3 or more picture
backgrounds in different screen resolutions, eg one pic at 640x480 another
800x600 and another at 1024x768 for instance then use the script below to
detect the users screen rez..
----------------------Put this part in the head section of your
page-------------------------
<script LANGUAGE="JavaScript">
var Wvalue=(0)
var Hvalue=(0)
Wvalue=screen.width
Hvalue=screen.height
var image="";
if (Wvalue==640&&Hvalue==480) {
image="../../../../../website_images/odyssey/erise640.jpg";
if (Wvalue==800&&Hvalue==600) {
image="../../../../../website_images/odyssey/erise800.jpg";
}
if (Wvalue==1024&&Hvalue==768) {
image="../../../../../website_images/odyssey/erise1024.jpg";
}
if(navigator.appName.indexOf("WebTV") != -1){
image="../../../../../website_images/garden/erisewebtv.jpg";
}
</script>
--------Put this next part at the bottom of your page right before the last
line "</html>"------------
<script LANGUAGE="JavaScript">
<!-- Begin
document.open();
document.write("<BODY BACKGROUND='"+image+"'>");
document.write("<CENTER></CENTER>");
// End -->
</script>
-------------------------------------------------------------------------- --
----------------
You will probably want to hae th image watermarked if so add this right
after your head section "</head>"
<body bgcolor="#000000" bgproperties="fixed">
----------------------------------------------------------------------
That's it. if you have any problems with this let me know. just in case that
I might have forgotten something.
I have to modify this script here to simplify it as I used it not only for
one image but 2. one for the main page and another for other pages
then set it to go into other subsites.
I had wanted a way to set the script once and then use the var not only in
the rest of the pages in my site but also across other subwebs.
a guy on the javascript showed me a way of doing this, this guy figured out
a way using session variables along with local variables and the
very need JavaScript code ( he called it a "bridge") that he created as a
challenge ( to see if he could make it work for me ).
I wish that I could remember his name to give credit where due.
anyways let me know how it goes and if you need other info like the above
mentioned I will try to help you like he helped me.
odyssey
(e-mail address removed)
minor controversy at the moment).
that most users that ask about them (or have problemsStefan B Rusynko said:The reason most of us recommend not using absolute positioning and css, is
cross browser / platform compatibility using external csswith them) do not understand them, and how to create / check them for
not discouraged from using them- so tables are often easier to implement correctly
(especially for users that do not stop to learn html / dhtml / css or work only in design view)
If a user indicates a knowledge of css and absolute positioning they are
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.