函数iframe不起作用,返回错误

时间:2013-12-02 12:46:44

标签: javascript iframe

我有一个带onclick的按钮,可以调用函数iniciaIframe。此函数类并传递带有图像的URL。但是返回错误。窗口打开但不带图像。有人能帮助我吗?

<a href="#" id="button-visao360" class="button visao360 gbox" onclick="iniciaIframe('.iframevisao3d', 'http://siteexample.com.br/EstruturaProdutos/Arquivo3D/cod_33044216/index.html')" rel="gboxmodal2;400;auto" style="display: block;">
  <span>
        Visão 360
  </span>
</a>

<iframe id="ctl00_PlaceHolderMain_g_9d330d60_4ec4_4305_bca5_7754da46f3a6_ctl00_ucProdutoDetalhe_iframeVisao3dArquivo" width="360px" scrolling="no" height="350px" frameborder="0" marginheight="0" marginwidth="0" class="iframevisao3d"></iframe>


<script>
(function() {with (this[2]) {with (this[1]) {with (this[0]) {
return function(event) {iniciaIframe('.iframevisao3d', 'http://siteexample.com.br/EstruturaProdutos/Arquivo3D/cod_33044216/index.html') }
;}}}})
</script>

错误是

<pre>SyntaxError: Unexpected token <
message: "Unexpected token <"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error</pre>

0 个答案:

没有答案
相关问题