导航

关闭Axure生成页面默认的SiteTree和Notes

Posted on 2012-07-02 16:50  immiki  阅读(189)  评论(0编辑  收藏  举报

源地址  http://haolequ.com/post/249.html   谢谢博主分享~~~


读起来很拗口,其实大家都看明白的。就是生成的演示文件左侧有那个CloseFrame。每次你都需要点一下才能关闭,麻烦哇?

有时候左边这个东西存在严重影响你展示的效果,尤其是直接演示给客户看的时候。因此,这个时候最好是打开就直接关闭左侧。

解决办法:

1. 打开输出文件中的index.html文件;

2. 找到“function Initialize()”,将“function Initialize()”后“{}”内的内容替换成:self.location.href  = “[默认需要显示的页面名称].html”;

*********************************************************************************************

例修改前代码:

function Initialize()
{
var pageName = QueryString(“Page”);
if (pageName.length > 0)
{
parent.mainFrame.location.href = pageName + “.html”;
}
else
{
parent.mainFrame.location.href = “首页.html”;
}
}

修改后代码:

function Initialize()
{
self.location.href  = “首页.html”;
}