var liens=_ktop.book.pages,_searchURL=_ktop._common+"empty.htm",_currentIndex=-1,_interval,_subFrame,theWin=window,_timeOut=60,_currentTime=0
if(_macIE&&!_ie4) _timeOut=10
document.write(""+_lab["PreloadTitle"]+"")
function intervCheck()
{
if ((++_currentTime/5)>_timeOut)
{
_currentTime=0;onLoadIndex();return
}
}
function beginPreloadCB()
{
_subFrame=getFrame('hidden_frame');searchByIndex(0)
}
function onLoadIndexCB()
{
if (_currentIndex!=-1)
{
if (_ie) setTimeout('onLoadIndex()', 1)
else onLoadIndex()
}
}
function onLoadIndex()
{
if (_currentIndex != -1)
{
calculGauge(_currentIndex);searchByIndex(_currentIndex + 1)
}
}
function calculGauge(index)
{
getFrame('find_frame').calculGauge(index)
}
function searchByIndex(index)
{
_currentIndex=index;_currentTime=0
if (index>=liens.length)
{
calculGauge(liens.length-1);doClose(400);return
}
if ((liens[index].internal)&&(liens[index].internal!="pict"))
{
searchByIndex(index + 1);return
}
_searchURL=_ktop.getPageURL(index);_ktop._thePrevId=index
if (_subFrame.location.href=='hidden1.htm') changeFrameURL(_subFrame,'hidden2.htm')
else changeFrameURL(_subFrame,'hidden1.htm')
}
function doClose(intv)
{
if (_interval!=_NULL) theWin.clearInterval(_interval)
setTimeout("reallyClose()",intv)
}
function reallyClose()
{
if (!top.closed) top.close()
}
_interval=setInterval('intervCheck()',200)
Wyszukiwarka
Podobne podstrony:
Frames (4)frames (3)demo framesload in frames20LCD FRAMESTRmenu framespreloaderwięcej podobnych podstron