vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Resolution Auto Sizing (https://vborg.vbsupport.ru/showthread.php?t=33662)

webhost 12-31-2001 02:27 AM

Building a new website, trying to get it to auto size for the different resoultions, Can anyone help with this, the header is in flash the rest is php. Website can be seen Here

Hope someone can help with this.

Lesane 12-31-2001 10:38 AM

On my old site i made 2 pages, one for 800x600 and one for 1024x768 and then i used this for index.html(in the head):

PHP Code:

<SCRIPT LANGUAGE="JavaScript">

<!-- 
Begin
function redirectPage() {
var 
url640x480 "herewebsite800.html";
var 
url800x600 "herewebsite800.html";
var 
url1024x768 "herewebsite1024768.html";
var 
url1280x1024 "herewebsite1024768.html";
if ((
screen.width == 640) && (screen.height == 480)) 
window.location.hrefurl640x480;
else if ((
screen.width == 800) && (screen.height == 600))
window.location.hrefurl800x600;
else if ((
screen.width == 1024) && (screen.height == 768))
window.location.hrefurl1024x768;
else if ((
screen.width == 1280) && (screen.height == 1024))
window.location.hrefurl1280x1024;
else 
window.location.hrefurl640x480;
}
// End -->
</script

Hope this helps :)

Stasik 12-31-2001 11:14 AM

as i see it is resizing

webhost 01-01-2002 03:27 AM

We have it auto sizing when someone opens a full window view at any resolution, problem is when say somebody minimize;s to half size window then it does not auto resize any way to do this?
The header is flash and the rest of the page is php. When u look at site once there hold down ctrl key and click refresh, should see proper window and minimize to half size and u will see what Iam trying to accomplish.

UPDATE FIXED


All times are GMT. The time now is 11:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00996 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete