Note that there are some explanatory texts on larger screens.

plurals
  1. POCycle scaled webpages in iframe?
    primarykey
    data
    text
    <p>I'm trying to combine code from two questions previously asked here before. <a href="https://stackoverflow.com/questions/84163/how-can-i-cycle-through-pages">How can I cycle through pages?</a> I want to use this code to create a kiosk and cycle through webpages. I also want to use <a href="https://stackoverflow.com/questions/166160/how-can-i-scale-the-content-of-iframe">How can I scale the content of an iframe?</a> this to scale the content of the iframe. Ideally I would like to scale each page by a different factor, but if this is not possible then I will use a static value. On a side note, is it possible to scale the page automatically to a certain screen resolution or will I have to keep trying factors until I find an ideal one? Thanks</p> <pre><code>&lt;style&gt; #wrap { width: 1390px; height: 690px; padding: 0; overflow: hidden; } #frame { width: 1390px; height: 690px; border: 0px solid black; } #frame { zoom: 2; -moz-transform: scale(2); -moz-transform-origin: 0 0; } &lt;/style&gt; &lt;script type="text/javascript"&gt; var frames = Array('http://www.google.com, 5, 'http://www.yahoo.com', 5, 'http://www.ebay.com', 5); var i = 0, len = frames.length; function ChangeSrc() { if (i &gt;= len) { i = 0; } document.getElementById('frame').src = frames[i++]; setTimeout('ChangeSrc()', (frames[i++]*1000)); } window.onload = ChangeSrc; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrap"&gt; &lt;iframe src="" id="frame" scrolling="no" frameborder="0"&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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