Difference between revisions of "Team:Shenzhen SFLS"

Line 139: Line 139:
 
document.getElementById("menu").style.cssText="float:left;position:absolute; left:0px; top:0px;";
 
document.getElementById("menu").style.cssText="float:left;position:absolute; left:0px; top:0px;";
 
document.getElementById("fog").style.cssText="position:absolute; left:"+(-window.innerWidth/3)+"px; height:"+window.innerWidth*2/3+"px; width:"+window.innerWidth*2/3+"px;top:"+(window.innerHeight/2-window.innerWidth/3)+"px;z-index:-5";
 
document.getElementById("fog").style.cssText="position:absolute; left:"+(-window.innerWidth/3)+"px; height:"+window.innerWidth*2/3+"px; width:"+window.innerWidth*2/3+"px;top:"+(window.innerHeight/2-window.innerWidth/3)+"px;z-index:-5";
document.getElementById("subMenu").style.cssText="background-color:#E0EEEE;height:"+document.getElementById("bgimg").height+"px;width:"+window.innerWidth/3+"px;float:right;margin-top:"+(window.innerHeight-document.getElementById("bgimg").height)/2+"px";
+
document.getElementById("subMenu").style.cssText="background-color:#E0EEEE;height:"+document.getElementById("bgimg").height+"px;width:"+window.innerWidth/3+"px;float:right;margin-top:"+Math.max(0,(window.innerHeight-document.getElementById("bgimg").height)/2)+"px";
 
document.getElementById("lft").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2-window.innerWidth/(4*1.4142)+iconWid/2)+"px;left:0px;z-index:5";
 
document.getElementById("lft").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2-window.innerWidth/(4*1.4142)+iconWid/2)+"px;left:0px;z-index:5";
 
document.getElementById("rgt").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2+iconWid/2)+"px;left:0px;z-index:6";
 
document.getElementById("rgt").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2+iconWid/2)+"px;left:0px;z-index:6";
Line 153: Line 153:
 
document.getElementById("menu").style.cssText="float:left;position:absolute; left:0px; top:0px;";
 
document.getElementById("menu").style.cssText="float:left;position:absolute; left:0px; top:0px;";
 
document.getElementById("fog").style.cssText="position:absolute; left:"+(-window.innerWidth/3)+"px; height:"+window.innerWidth*2/3+"px; width:"+window.innerWidth*2/3+"px;top:"+(window.innerHeight/2-window.innerWidth/3)+"px;z-index:-5";
 
document.getElementById("fog").style.cssText="position:absolute; left:"+(-window.innerWidth/3)+"px; height:"+window.innerWidth*2/3+"px; width:"+window.innerWidth*2/3+"px;top:"+(window.innerHeight/2-window.innerWidth/3)+"px;z-index:-5";
document.getElementById("subMenu").style.cssText="background-color:#E0EEEE;height:"+document.getElementById("bgimg").height+"px;width:"+window.innerWidth/3+"px;float:right;margin-top:"+(window.innerHeight-document.getElementById("bgimg").height)/2+"px";
+
document.getElementById("subMenu").style.cssText="background-color:#E0EEEE;height:"+document.getElementById("bgimg").height+"px;width:"+window.innerWidth/3+"px;float:right;margin-top:"+Math.max(0,(window.innerHeight-document.getElementById("bgimg").height)/2)+"px";
 
document.getElementById("lft").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2-window.innerWidth/(4*1.4142)+iconWid/2)+"px;left:0px;z-index:5";
 
document.getElementById("lft").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2-window.innerWidth/(4*1.4142)+iconWid/2)+"px;left:0px;z-index:5";
 
document.getElementById("rgt").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2+iconWid/2)+"px;left:0px;z-index:6";
 
document.getElementById("rgt").style.cssText="position:absolute;height:"+window.innerWidth/(4*1.4142)+"px; width:"+window.innerWidth/(4*1.4142)+"px;top:"+(window.innerHeight/2+iconWid/2)+"px;left:0px;z-index:6";

Revision as of 12:11, 17 October 2016

Shenzhen_SFLS