Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Take a look at <a href="http://www.netmagazine.com/tutorials/create-zoomable-user-interface" rel="nofollow">this example</a>, it might help you out.</p> <p>Basically you're gonna have to bind the scroll event and change the behavior. The example uses CSS3 transformations, if that doesn't work for you because it needs to work on old browsers you might need to change the images sizes. But still some browsers don't render the changed size of an image.</p> <p>Just to give you a path to go, this is an example of what you can do, considering your page HTML:</p> <pre><code>window.addEventListener('scroll',function(){ var scrolled = window.scrollY / ( document.getElementById("Table_01").offsetHeight ); console.log("window.scrollY: " + window.scrollY); console.log("scrolled: " + scrolled ); var zoomLevels = 1; //change to have a different behavior var scale = Math.pow( 3, scrolled * zoomLevels); var images = document.getElementById("Table_01").getElementsByTagName("img"); console.log("scale:" + scale); for(i=0;i&lt;images.length;i++){ images[i].width = Math.round(500/scale); //change 500 to your image size images[i].height = Math.round(500/scale); //change 500 to your image size } },true); </code></pre> <p>You can see this DEMO in action here: <a href="http://jsfiddle.net/qG6qm/3/" rel="nofollow">http://jsfiddle.net/qG6qm/3/</a></p> <p>IMPORTANT: for this code to work you have to change your table tag from:</p> <pre><code>&lt;table id="Table_01" width="5000" height="5000" boder="0" cellspacing="0" cellpadding="0"&gt; </code></pre> <p>to:</p> <pre><code>&lt;table id="Table_01" boder="0" cellspacing="0" cellpadding="0"&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload