MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Browser resolution?



******    message to minivend-users from Kyle Cook <kyle@invisio.com>     ******

At 09:43 AM 5/6/99 +0200, you wrote:
>******    message to minivend-users from jojo 
><hans-joachim.leidinger@home.gelsen-net.de>     ******
>
>Hello list,
>
>are there a way to get the browser resolution? I am able to get the
>browser agent and to create different page for different browser! But i
>need the browser resolution to fit my page! 
>Any ideas?
>
>Thanks!

I found this laying around:

I've left out the javascript tags so that it doesn't get interpreted
in any email programs.


var colordepth="unknown";
var height="unknown";
var width="unknown";
if 
((window.navigator.userAgent.indexOf("5.") > 0) || 
(window.navigator.userAgent.indexOf("4.") > 0)) {
    var height=screen.height;
    var width=screen.width;
    var colordepth=screen.colorDepth;
}



Kyle Cook 
http://www.invisio.com 
Web site design, database driven sites,
and shopping cart programming. 
Great sites, value priced!

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: