473,326 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Zoom in property

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.  
  3.  var minW = 1220;
  4.  
  5.         $(function () {
  6.             CheckSizeZoom();
  7.             $('#divWrap').css('visibility', 'visible');
  8.         });
  9.         $(window).resize(CheckSizeZoom);
  10.  
  11.         function CheckSizeZoom() {
  12.             if ($(window).width() < minW) {
  13.                 var zoomLev = $(window).width() / minW;
  14.  
  15.                 if (typeof (document.body.style.zoom) != "undefined") {
  16.                     $(document.body).css('zoom', zoomLev);
  17.                 }
  18.                 else {
  19.                     // Mozilla doesn't support zoom, use -moz-transform to scale and compensate for lost width
  20.                     $('#divWrap').css({
  21.                         "-moz-transform": 'scale(" + zoomLev + ")',
  22.                         width: $(window).width() / zoomLev + 10,
  23.                         position: 'relative',
  24.                         left: (($(window).width() - minW - 16) / 2) + "px",
  25.                         top: "-19px"
  26.                     });
  27.                 }
  28.             }
  29.             else {
  30.                 $(document.body).css({
  31.                     zoom: '',
  32.                     position: '',
  33.                     left: "",
  34.                     top: "",
  35.                     "-moz-transform": "",
  36.                     width: ''
  37.                 });
  38.             }
  39.         }
  40. </script>


It doesn't work on IE, how can I fix this?
Sep 20 '12 #1
3 2450
gits
5,390 Expert Mod 4TB
try to set the -ms-zoom property too
Sep 20 '12 #2
it doesnt work properly...
Sep 20 '12 #3
gits
5,390 Expert Mod 4TB
what have you tried?
Sep 20 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: stef | last post by:
Hello: I am trying to design a web page whose graphics content would change according to the "text Zoom" settings of the user. (Basically the goal is to use mathematical symbols that...
0
by: Francis Parsons | last post by:
Hi! I'm doubtful there's a workaround for this problem, but it's worth a shot. I'm using IE's (css) "zoom" property to zoom the body of a document (in conjunction with persistance so the...
10
by: Deano | last post by:
I think that just about sums it up. Is there a fix/workaround for this?It's quite annoying behaviour and not user-friendly.thanksMartin
3
by: Just Me | last post by:
Using a Richtextbox I use EM_SETZOOM to set a zoom factor. If I set it to 2 the image on the screen increase but not exactly by 2. I've coded a ruler above the Richtextbox which does scale by...
1
by: Ricardo Furtado | last post by:
I've been with a problem for about two months and i've bought books and search the internet for an explanation, and haven't found one. I'm developing a cephalometric software, that needs to capture...
3
by: Keith G Hicks | last post by:
In MS Access image controls there's a property setting for "Size Mode" --> Clip, Zoom or Stretch. I don't see any similar property in an asp image control. When I have an image on a page, it seems...
4
by: Yoshitha | last post by:
I'm developing windows application using c#.net (vs 2003), i've placed several images (picture boxes) in panel control and i want to zoom the panel control so that the images and text which...
0
by: gplana | last post by:
Hi all. I'm trying to create an application with a RichTextBox control in order to let user introduce a formatted text, and then I generate a word2007 .docx document with that text. I added the...
2
by: Mike | last post by:
Is there any way you can zoom a form and all its contents? In VBA you simply set the form zoom property(Form1.zoom). thanks
0
by: Blacky | last post by:
hi, I have a form where in i dropped a crystal report viewer.I created a report sample.rpt and this is the code which binds my report to the viewer. If (Session("rep") Is Nothing) Then ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.