class About {
function run() {
echo <<<EOD
<style>
body { font-size: 9pt; font-family:"Verdana", "Arial", "宋体"; }
</style>
<body>
<center>
<br>
<br>
关于此菜单
<br>
<br>
申明,此菜单法式只能利用在IE 5以上的版本利用,NetSpace下不克不及利用,保举利用IE 6正式中文版
</center>
</body>
EOD;
}
}
class Page {
function run($id1) {
global $id;
echo <<<EOD
<style>
body { font-size: 9pt; font-family:"Verdana", "Arial", "宋体"; }
</style>
<body>
<center>
<br>
<br>
接待会见 $id
</center>
</body>
EOD;
}
}
class Menu {
var $MenuOn = 0; //界说分类菜双数目
var $MenuBackColor = "lightgrey"; //界说分类菜单后台色彩
var $MenuFontSize = "9pt"; //界说分类菜单字体
var $MenuBarHeight = 20; //界说分类菜单高度
var $ItemTextColor = "#000000"; //界说分类菜单项目文字色彩
var $ItemBackColor = "lightgrey"; //界说分类菜单项目后台色彩
var $TopMenuHeight = 0; //界说分类菜单与顶部的间距
var $SelectedItemDarkBorder = "#08246B"; //界说分类菜单项目在鼠标挪动到下面时的暗边框色彩
var $SelectedItemLightBorder = "#08246B"; //界说分类菜单项目在鼠标挪动到下面时的亮边框色彩
var $SelectedItemBackgroundColor = "#B5BED6"; //界说分类菜单项目在鼠标挪动到下面时的后台色彩
var $menuSubSectionBackColor = "darkgray"; //界说二级菜单后台色彩
var $menuSubSectionFontColor = "black"; //界说二级菜单菜单字体色彩
var $defTarget = "main"; //界说菜单项目超毗连默许方针框架
<script language=javascript>
var AvailHeight // 界说可使用的高度
var LastSection // 界说将要翻开的菜单封闭
var ThisSection // 界说以后需求翻开的菜单
var timerDelay=15 // 界说并设置延时
var menuActive=false // 测定以后举动的菜单
var VisibleHeight // 界说显示高度,肯定是不是显示转动条
var AniRatio // 界说菜单显示滑动的速度
function getSizing() {
// 菜单翻开时失掉的可使用的高度
AvailHeight=document.body.clientHeight-$dh
if(AvailHeight<=0) {
LastSection.style.display='none';
}else {
// 改动菜单显示滑动速度的比率
AniRatio=0.75; // 设定速度
if (AvailHeight>200) {AniRatio=0.667;}
if (AvailHeight>500) {AniRatio=0.5;} // 依据可使用高度调剂速度
LastSection.style.height=AvailHeight;
LastSection.style.overflow='visible';
LastSection.style.display='';
VisibleHeight=parseInt(LastSection.clientHeight);
if (VisibleHeight>AvailHeight) {LastSection.style.overflow='auto';}else{LastSection.style.overflow='hidden';};
}
}
function slideMenu() {
// 菜单滑动函数
if(parseInt(LastSection.style.height)>1) {
LastSection.style.height=parseInt(parseInt(LastSection.style.height)*AniRatio);
ThisSection.style.height=AvailHeight-parseInt(LastSection.style.height);
var movetimer=setTimeout("slideMenu()",timerDelay) ;
}else {
// 完成菜单滑动,显示新翻开的菜单,埋没后面以翻开的菜单
LastSection.style.display='none';
ThisSection.style.height=AvailHeight;
menuActive=false;
if (VisibleHeight>AvailHeight) {ThisSection.style.overflow='auto';};
ThisSection.style.marginRight=0;
LastSection=ThisSection;
clearTimeout(movetimer);
}
}