开发者

iframe Onload Visibility

I am trying to hide an iframe until it is loaded by I keep getting an error with开发者_如何学Python the following code:

    jquery("some stuff">.html("<iframe frameborder='0' vspace='0' hspace='0' marginwidth='0'
 allowtransparency='true' scrolling='no' marginheight='0' 
style='visibility:hidden;' onload="this.style.visibility='visible';" width='600' 
class='frm'></iframe>").appendTo('body');

But it returns an error "syntax error this.style.visibility".

Can anyone help ?

edit:fixed spelling but now get the error

'missing ) after argument list'


You have a typo. Should be

this.style.visibility='visible';


required exit quotes \ and \

onload=\"this.style.visibility='visible';\"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜