Can someone post the JS code or html code "resize to fit screen"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KMR Stitch
    I am cool
    • Jul 2003
    • 14494

    #1

    Can someone post the JS code or html code "resize to fit screen"

    It's basicly if a surfer is 800x600 resoultion it will resize for him

    If a surfer has 1200x1200 it will work will for him also
  • JSA Matt
    So Fucking Banned
    • Aug 2003
    • 5464

    #2
    code below works better;)

    someone please post that 'google - do you use it' pic

    Comment

    • Dirty Dane
      Sick Fuck
      • Feb 2004
      • 9491

      #3
      Code:
      <script language="JavaScript1.2">
      <!--
      top.window.moveTo(0,0);
      if (document.all) {
      top.window.resizeTo(screen.availWidth,screen.availHeight);
      }
      else if (document.layers||document.getElementById) {
      if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
      top.window.outerHeight = screen.availHeight;
      top.window.outerWidth = screen.availWidth;
      }
      }
      //-->
      </script>

      Comment

      • KMR Stitch
        I am cool
        • Jul 2003
        • 14494

        #4
        Originally posted by JSA Matt
        code below works better;)

        someone please post that 'google - do you use it' pic

        Ive searched google and I got a lot of weird pages

        Comment

        • JSA Matt
          So Fucking Banned
          • Aug 2003
          • 5464

          #5
          Originally posted by KMR Stitch
          Ive searched google and I got a lot of weird pages
          http://www.google.com/search?hl=en&q...er+resize+code

          first link...

          Comment

          • swedguy
            Confirmed User
            • Jan 2002
            • 7981

            #6
            Originally posted by KMR Stitch
            Ive searched google and I got a lot of weird pages
            Result #1 gave me what you were looking for.

            Comment

            • KMR Stitch
              I am cool
              • Jul 2003
              • 14494

              #7
              Originally posted by Dirty Dane
              Code:
              <script language="JavaScript1.2">
              <!--
              top.window.moveTo(0,0);
              if (document.all) {
              top.window.resizeTo(screen.availWidth,screen.availHeight);
              }
              else if (document.layers||document.getElementById) {
              if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
              top.window.outerHeight = screen.availHeight;
              top.window.outerWidth = screen.availWidth;
              }
              }
              //-->
              </script>

              Thanks,
              I seem to get an error though?

              Comment

              • Dirty Dane
                Sick Fuck
                • Feb 2004
                • 9491

                #8
                Originally posted by KMR Stitch
                Thanks,
                I seem to get an error though?
                Put it in head section. Right below title tag

                Comment

                • Furious_Male
                  Doing the grind since 99
                  • Oct 2003
                  • 16884

                  #9
                  I have been using this forever. Its old school but still appears to get the job done.

                  Code:
                  <script language="JavaScript">
                  self.moveTo(0,0);
                  self.resizeTo(screen.availWidth,screen.availHeight);
                  </script>
                  Living in Virtual Reality
                  Contact: Email (preferred): furiousmale .at. gmail - Skype: live:shanedws

                  Comment

                  • SmokeyTheBear
                    ►SouthOfHeaven
                    • Jun 2004
                    • 28609

                    #10
                    Originally posted by Furious_Male
                    I have been using this forever. Its old school but still appears to get the job done.

                    Code:
                    <script language="JavaScript">
                    self.moveTo(0,0);
                    self.resizeTo(screen.availWidth,screen.availHeight);
                    </script>
                    hatisblack at yahoo.com

                    Comment

                    Working...