A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Browser resolution detection

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    2
    I'm looking for a script that will detect your browser resolution and pop a window full screen.
    Can you help?
    Mucho apreciata'

  2. #2
    Junior Member
    Join Date
    Sep 2000
    Posts
    11

    for detecting:
    Code:
    if (window.screen){
      var w = screen.width;
      tmt_url_640 = "640.htm";
      tmt_url_800 = "800.htm";
      tmt_url_1024 = "1024.htm";
      if(w<740){
        self.location.replace(tmt_url_640);
      }
      if(w>=740 & w<835){
        self.location.replace(tmt_url_800);
      }
      if(w>=835){
        self.location.replace(tmt_url_1024);
      }
    }

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

HTML5 Development Center