How to preload iframe

后端 未结 2 951
[愿得一人]
[愿得一人] 2021-01-13 17:37
function toggle(){
    $(\"#tempc\").toggle(
        function () {
            $(\"#tempc\").animate({width: 255, height: 220}, 1000);
            $(\"#tempc\").html         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-13 18:13

    Start by loading the iframe, hook into onLoad on the iframe (this might give you a headache in itself, but a little googling should show you how to make this work well cross browser) and run your animation from this event.

提交回复
热议问题