Here is a Java script that someone (on this list I think) gave me. 
Note the lines for screen resolution.
You could use the results from the script to know what the browsers size is 
and then do your computations to layout the page from that information:

[script LANGUAGE="Javascript">
<!--
        if ( navigator.cookieEnabled != "" && navigator.cookieEnabled !=
"undefined" ) {
                document.write("<li>Cookies: " + navigator.cookieEnabled +
"</li>") }
    if ( navigator.javaEnabled() != "" && navigator.javaEnabled() !=
"undefined" ) {
                document.write("<li>Java: " + navigator.javaEnabled() +
"</li>") }
    if ( screen.width != "" ) {
                document.write("<li>Screen: " + screen.width + "x" +
screen.height + "</li>") }
    if ( screen.colorDepth != "" ) {
                document.write("<li>Color: " + screen.colorDepth +
"-bit</li>") }
        if ( navigator.userLanguage != "" && navigator.userLanguage !=
"undefined" ) {
                document.write("<li>Language: " + navigator.userLanguage +
"</li>") }
//-->
</script


Hope this helps,

Troy Sosamon

===== Original Message from [EMAIL PROTECTED] at 11/18/02 8:52 am
>>What do you want the sidebar to do?  What's wrong with what it does now?
>
>
>I want the height of the sidebar to match that of the main content in the body of the 
>page. 
This height is variable - as detailed below
>
>
>
>> > Has anyone thought about ways to calculate the height of pages on
>>dynamically-generated sites? I'd like to offer a sidebar height that
>>"tracks" the height of the results by adding additional sidebar sections as
>>required
>>>
>>> Some of our pages are long as they show 10 or 20 results from a database
>>search. For example:
>>>
>>>   http://www.bolide.co.uk/actions/directory.taf?_function=WOWlist
>>>
>>> This page will always be long as there are (and always will be) more than
>>enough results to fit the page. As you can see the left-hand sidebar stops
>>half-way down the page
>>>
>>>
>>> Some pages will always be short, like
>>>
>>>   http://www.bolide.co.uk/actions/addsubscriber.taf
>>>
>>>
>>> And some pages will be of variable length, dependent on how many results
>>the search provides
>>>
>>>
>>> Any thoughts on ways to track the resulting page height? I can count the
>>number of records returned in a search but this isn't always an totally
>>accurate guide as some entries take up more space than others
>>>
>>> I don't want to use frames. Currently the sidebars come straight out of
>>tango variables and their content is dynamically-generated. All pages are
>>dynamic. the site is built on Filemaker so super-complex calculations are
>>out...
>>>
>>> Ideally I would add a simple calc to the sidebar; this would mean the page
>>templates wouldn't need altering
>>> ________________________________________________________________________
>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>>>                 with unsubscribe witango-talk in the message body
>>
>>________________________________________________________________________
>>TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>>                with unsubscribe witango-talk in the message body
>
>________________________________________________________________________
>TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to