Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zoom in on an iFrame's CONTENT

I am trying to zoom in (NOT CHANGE THE SIZE) of an iFrame, where the source is a SWF file.

<iframe src="http://ray.eltania.net/TEST/swf-play/swf/testMotion.swf" width="600px" height="500px" frameBorder="0"></iframe>

http://jsfiddle.net/MuxRX/

As you can see, the size of the iFrame is 600x500px. I would like to zoom in on the CONTENT of that SWF. Imagine zooming in 90%, then you would only see the slider once in a while, but keep the same size of the frame.

I tried every link on StackOverflow, but every result just changed the size of the content, where I want a zoom effect. I do not want stuff like this:

iframe {
    zoom: 0.5;
}

http://jsfiddle.net/MuxRX/1/

like image 760
Lemvig Kiggeren Avatar asked Oct 26 '25 10:10

Lemvig Kiggeren


1 Answers

If the Iframe comes from a different domain, you can't. That would be a cross-site scripting attack, which would be blocked by the browser.

like image 126
Diodeus - James MacFarlane Avatar answered Oct 29 '25 01:10

Diodeus - James MacFarlane



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!