Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 08:08:57 AM

Pages: [1]   Go Down
  Print  
Author Topic: resolution woes  (Read 465 times)
afterhours
Trekkie
**
Offline Offline

Posts: 11


WWW
« on: March 27, 2002, 03:54:00 PM »

is there any javascript or dhtml that will resize the visitor's resolution to wat i want it to be when he view my site ?  
Logged
the prof
Trekkie
**
Offline Offline

Posts: 18


WWW
« Reply #1 on: March 27, 2002, 05:09:00 PM »

That reminds me of Microsoft's attitude of dictating how the user should operate his own equipment.

Remember, some users still have older monitors which won't go above 800 x 600.

Not to mention non-DHTML compliant browsers.

The best solution is to use javascript to detect the user's screen resolution, then redirect to a page designed for that particular resolution.

You might need to design a few pages to handle various possibilities.

My rule of thumb is to design everything for a minimum rez of 800 x 600.

And make sure you use "web safe" colors that still look OK at minimum color depth.


The bottom line is:

you can't please everyone, but you can make your site flexible enough to get to the majority of surfers.
Logged

The Prof from Cyberschool
afterhours
Trekkie
**
Offline Offline

Posts: 11


WWW
« Reply #2 on: March 27, 2002, 07:56:00 PM »

HAHAHA ! Good answer n funny!
Logged
kahlan
Intergalactic Superstar
*****
Offline Offline

Posts: 138


WWW
« Reply #3 on: April 02, 2002, 12:15:00 PM »

If you just have a small glitch between resolutions you can use a small piece of javascript to tell the browser to either put one line of code or the other.

The example here is to test if the browser is IE or Netscape and to put in code accordingly. Your other code goes around it.

code:
 
<SCRIPT LANGUAGE="JavaScript">
// Begin

if (navigator.appName == "Microsoft Internet Explorer")
{
   document.write('<TR><TD height=7><IMG SRC="images/spacer.gif" height=7></TD></TR>')
}
else
{
        document.write('<TR><TD height=10><IMG SRC="images/spacer.gif" height=7></TD></TR>')
}
// End -->
</SCRIPT>
 

Logged

Bright Blessings from
Dragon Girl's Realm
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #4 on: April 10, 2002, 04:04:00 PM »

...or you can put a redirect javascript in there, based on resolution.  If you want that, let me know and I'll post it (gotta dig it up first heheh)
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
Pages: [1]   Go Up
  Print  
 
Jump to: