开发者

Preview using an iframe

How to preview a website using a iframe.

i.e, th开发者_如何学JAVAe size of the iframe should be should be as of the suggested videos o youtube.

Thanks..


<iframe src="http://www.youtube.com" style="width:150px; height:150px"/>


As told in stackoverflow already.

You can use AnythingZoomer to change insides of div.

Example

Create frame.php:

<script type="text/javascript">
     $(document).ready(function() {
          $("#webpage").load("<?=$_GET['url']?>");
    })
</script>
<div id="webpage" style="width: 100%; height: 100%;"></div>

And then load it where you need it with:

<iframe scr="frame.php?url=http://www.google.com" height="300" widht="300">

And set zoom:

<script type="text/javascript">
    $("#webpage").anythingZoomer({
       expansionSize: 30,
       speedMultiplier: 1.4
    });
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜