源地址 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”;
}