Results 1 to 3 of 3

Thread: Frames and more...

  1. #1

    Thread Starter
    Hyperactive Member vbzero's Avatar
    Join Date
    Aug 2000
    Location
    Vienna
    Posts
    347

    Question

    I have designed a page, which uses 5 frames:

    the top, the left, the middle, the right, and the bottom frame.

    All frames except the middle frame are independent of their size. (*)

    The middle frame is fixes to a height of 620 and a width of 1022.

    The page which is loaded into the middle frame contains also frames.

    The advantage: the middle frame with all its content is always placed into the middle of the browser.

    This is important if somebody has another screen resolution.

    The problem: If this site is optimized for 1024 x 768 and somebody has a resolution with 800 x 600, or has the favorites bar enabled on the left site, then you will not see the whole part of the middle frame.

    What I want is to enable scrollbars for up and down scrolling.

    Scrollbars are not show even if I enable them for the right and the bottom frame.

    Any ideas?

  2. #2
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Why not let a bit of VBScript decide the size for them instead - here's a bit of crud I got working...
    Code:
    <HTML>
    <SCRIPT LANGUAGE="VBSCRIPT">
     IF SCREEN.WIDTH = 1280 THEN
      DOCUMENT.WRITE "<FRAMESET border=0 frameBorder=YES frameSpacing=0 rows=""178,*"">"
      DOCUMENT.WRITE "<FRAME NAME = ""framesetHeader"" src=""FramesetHeader.htm"">"
      DOCUMENT.WRITE "<FRAME NAME = ""framesetButtons"" src=""FramesetButtons.htm"">"
      DOCUMENT.WRITE "</FRAMESET>"
     END IF
     IF SCREEN.WIDTH = 1024 THEN
      DOCUMENT.WRITE "<FRAMESET border=0 frameBorder=YES frameSpacing=0 rows=""123,*"">"
      DOCUMENT.WRITE "<FRAME NAME = ""framesetHeader"" src=""FramesetHeader.htm"">"
      DOCUMENT.WRITE "<FRAME NAME = ""framesetButtons"" src=""FramesetButtons.htm"">"
      DOCUMENT.WRITE "</FRAMESET>"
     END IF
     IF SCREEN.WIDTH = 800 THEN
      DOCUMENT.WRITE "<FRAMESET border=0 frameBorder=YES frameSpacing=0 rows=""88,*"">"
      DOCUMENT.WRITE "<FRAME NAME = ""framesetHeader"" src=""FramesetHeader.htm"">"
      DOCUMENT.WRITE "<FRAME NAME = ""framesetButtons"" src=""FramesetButtons.htm"">"
      DOCUMENT.WRITE "</FRAMESET>"
     END IF
    </SCRIPT>
    </HTML>
    Nick Cook
    VB6 (SP6)

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You will drive yourself insane trying to conform to the lowest common denominator. Create your page so it is targeted at the 'norm' which is 1024x768.

    Someone with higher resolution (like myself- 1280x1024 and 1600x1200 depending on the PC I'm using) usually doesn't maximize IE cuz that defeats the purpose of the high resolution which is to be able to do more than one thing at a time and be able to have all of the screens open.

    Someone with lower resolution.. well.. should upgrade. It's like ignoring the new things you can do with IE 5.5 because you want ppl with 3.0 to be able to view the page. At some point the world needs to upgrade.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width