您现在的位置是:首页 > 其他

李清波 2015-10-19 其他 1574 复制当前网址

asyncbox frameset

  • 说明:

  • 【需知】由于 frameset 标签的特殊性,不能直接在含有 frameset 页面中直接引用 AsyncBox。

  • 【必看】要想 AsyncBox 穿越 frameset,可以用一个 iframe 引用布局好的 frameset 页面,调用时加上 top 就行了。



以下附 AsyncBox 穿越 frameset HTML代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>在 frameset 上使用 AsyncBox</title>
  <!--在此处载入 AsyncBox 插件, 调用时全加上 top-->
  <style type="text/css">
      html,body{margin:0;overflow:hidden;height:100%}
  </style>
  </head>
  <body>
      <!--Iframe 滚动条屏蔽了,用 frameset 里的 就行-->
      <iframe frameborder="0" width="100%" height="100%" src="主框架页面" scrolling="no"></iframe>
  </body>
  </html>


AsyncBox 代码:

在 frameset 的 frame 中调用:

top.asyncbox.alert('Hello Frameset!');
使用方法参考“框架调用”中的 iframe。


文章来源:http://liqingbo.com/blog-995.html

上一篇:AsyncBox iframe

下一篇:asyncbox resizeTo

评论