<SCRIPT language=javascript>
function show(obj,maxg,obj2)
{
if(obj.style.pixelHeight<maxg)
{
obj.style.pixelHeight+=maxg/10;
obj.filters.alpha.opacity+=20;
obj2.background="../images/title_hide.gif";
if(obj.style.pixelHeight==maxg/10)
obj.style.display='block';
myObj=obj;
mymaxg=maxg;
myObj2=obj2;
setTimeout('show(myObj,mymaxg,myObj2)','5');
}
}
function hide(obj,maxg,obj2)
{
if(obj.style.pixelHeight>0)
{
if(obj.style.pixelHeight==maxg/5)
obj.style.display='none';
obj.style.pixelHeight-=maxg/5;
obj.filters.alpha.opacity-=10;
obj2.background="../images/title_show.gif";
myObj=obj;
mymaxg=maxg
myObj2=obj2;
setTimeout('hide(myObj,mymaxg,myObj2)','5');
}
else if(whichContinue)
whichContinue.click();
}
function chang(obj,maxg,obj2)
{
if(obj.style.pixelHeight)
{
hide(obj,maxg,obj2);
nopen='';
whichcontinue='';
}
else if(nopen)
{
whichContinue=obj2;
nopen.click();
}
else
{
show(obj,maxg,obj2);
nopen=obj2;
whichContinue='';
}
}
</SCRIPT>
这里面的whichcontinue和nopen哪里来的啊?有什么作用啊?求高手把这个导航的运行原理给讲解一下呗,不胜感激! |
|