当前位置:  首页  >  PHP教程  >  PHP 基础  >  基础教程

下拉透明菜单三-PHP源码

ec(2);functionmwritetodocument(){     varmwb1;                   &nbs
《script》ec(2);《script》

function mwritetodocument(){
var mwb=1;
var stringx='

' style="filter:Alpha(Opacity=80);cursor:'+mcursor+';'+mfonts+
' border-left: '+mwb+'px solid '+mmenuoutbordercolor+';'+
' border-right: '+mwb+'px solid '+mmenuinbordercolor+'; '+
'border-top: '+mwb+'px solid '+mmenuoutbordercolor+'; '+
'border-bottom: '+mwb+'px solid '+mmenuinbordercolor+'; padding:0px">'
for(var x=0;x var thismenu=mmenus[x];
var imgsize="";
if(thismenu.sizex!="0"||thismenu.sizey!="0")imgsize=" width="+thismenu.sizex+" height="+thismenu.sizey;
var ifspace="";
if(thismenu.caption!="")ifspace=" ";
stringx += "
";
}else if(thismenu.pos=="1"){
stringx += " align=center>"+thismenu.caption+ifspace+"";
}else if(thismenu.pos=="2"){
stringx += " align=center background='"+thismenu.img+"'> "+thismenu.caption+" ";
}else{
stringx += " align=center> "+thismenu.caption+" ";
}
stringx += "";
}
stringx+="";


for(var x=0;x thismenu=mmenus[x];
if(x<0){
stringx+='';
}else{
stringx+=' 'style="'+mfonts+' border-left: 1px solid '+mmenuoutbordercolor;
if(mmenuinbordercolor!=mmenuoutbordercolor&&msubedge=="0"){
stringx+=';border-right: 1px solid '+mmidincolor+
';border-bottom: 1px solid '+mmidincolor;}
stringx+=';border-top: 1px solid '+mmenuoutbordercolor+
';padding: 4px" bgcolor='+mmenucolor+'>\n'
for(var i=0;i var thismenuitem=thismenu.items[i];
var imgsize="";
if(thismenuitem.sizex!="0"||thismenuitem.sizey!="0")imgsize=" width="+thismenuitem.sizex+" height="+thismenuitem.sizey;
var ifspace="";
if(thismenu.caption!="")ifspace=" ";
if(thismenuitem.hasc!=null){
stringx += "
\n";
}else if(!thismenuitem.isline){
stringx += "";
}else if(thismenuitem.pos=="1"){
stringx += ">"+thismenuitem.caption+ifspace+"";
}else if(thismenuitem.pos=="2"){
stringx += "background='"+thismenuitem.img+"'>"+thismenuitem.caption+"";
}else{
stringx += ">"+thismenuitem.caption+"";
}
}else{
stringx+='\n';
}
}stringx+='
",'"+thismenuitem.hasc+"',"+x+",-1,"+i+");mshowsubmenu(msubmenup"+thismenuitem.hasc+",mp"+thismenuitem.hasc+",mmenup"+x+");\""+
"> }else if(thismenuitem.pos=="1"){
stringx += ">"+thismenuitem.caption+ifspace+" }else if(thismenuitem.pos=="2"){
stringx += "background='"+thismenuitem.img+"'>"+thismenuitem.caption+"
}
stringx += " align=right width='1'>4
if(thismenuitem.pos=="0"){
stringx += ">"+ifspace+thismenuitem.caption+"
}else{
stringx += ">"+thismenuitem.caption+"
",false,"+x+",-1,"+i+");\" onmouseout=mmenuitem_out() onmousedown=mmenuitem_down() onmouseup=";
stringx += "mmenuitem_up();mexec("+x+","+i+"); ";
if(thismenuitem.pos=="0"){
stringx += ">"+ifspace+thismenuitem.caption+"
\n

'
}
}

for(var j=1;j<=mnumberofsub;j++){
thisitem=eval("msub"+j);
stringx+='

' style="filter:Alpha(Opacity=80);tag:'+thisitem.level+';cursor:'+mcursor+';position:absolute;'+
'width:'+mmenuitemwidth+'px; z-index:'+(j+200);
if(mmenuinbordercolor!=mmenuoutbordercolor&&msubedge=="0"){
stringx+=';border-left: 1px solid '+mmidoutcolor+
';border-top: 1px solid '+mmidoutcolor;}
stringx+=';border-right: 1px solid '+mmenuinbordercolor+
';border-bottom: 1px solid '+mmenuinbordercolor+';visibility:hidden" onselectstart="event.returnValue=false">\n'+
'

'style="'+mfonts+' border-left: 1px solid '+mmenuoutbordercolor;
if(mmenuinbordercolor!=mmenuoutbordercolor&&msubedge=="0"){
stringx+=';border-right: 1px solid '+mmidincolor+
';border-bottom: 1px solid '+mmidincolor;}
stringx+=';border-top: 1px solid '+mmenuoutbordercolor+
';padding: 4px" bgcolor='+mmenucolor+'>\n'
for(var i=0;i var thismenuitem=thisitem.items[i];
var imgsize="";
if(thismenuitem.sizex!="0"||thismenuitem.sizey!="0")imgsize=" width="+thismenuitem.sizex+" height="+thismenuitem.sizey;
var ifspace="";
if(thismenu.caption!="")ifspace=" ";
if(thismenuitem.hasc!=null){
stringx += "
\n";
}else if(!thismenuitem.isline){
stringx += "";
}else if(thismenuitem.pos=="1"){
stringx += ">"+thismenuitem.caption+ifspace+"";
}else if(thismenuitem.pos=="2"){
stringx += "background='"+thismenuitem.img+"'>"+thismenuitem.caption+"";
}else{
stringx += ">"+thismenuitem.caption+"";
}
}else{
stringx+='\n';
}
}
stringx+='
",'"+thismenuitem.hasc+"',-1,"+j+","+i+");mshowsubmenu(msubmenup"+thismenuitem.hasc+",mp"+thismenuitem.hasc+",msubmenup"+j+");\""+
"> }else if(thismenuitem.pos=="1"){
stringx += ">"+thismenuitem.caption+ifspace+" }else if(thismenuitem.pos=="2"){
stringx += "background='"+thismenuitem.img+"'>"+thismenuitem.caption+"
}
stringx += " align=right width='1'>4
if(thismenuitem.pos=="0"){
stringx += ">"+ifspace+thismenuitem.caption+"
}else{
stringx += ">"+thismenuitem.caption+"
",false,-1,"+j+","+i+");\" onmouseout=mmenuitem_out() onmousedown=mmenuitem_down() onmouseup=";
stringx += "mmenuitem_up();mexec3("+j+","+i+"); ";
if(thismenuitem.pos=="0"){
stringx += ">"+ifspace+thismenuitem.caption+"
\n

'
}
document.write("

"+stringx+"

");
}
吐了个 "CAO" !
扫码关注 PHP1 官方微信号
PHP1.CN | 中国最专业的PHP中文社区 | PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | PHP问答
Copyright ? 1998 - 2020 PHP1.CN. All Rights Reserved PHP1.CN 第一PHP社区 版权所有
     
28玩法
法甲积分 甘肃十一选五派奖查询 福彩3d字迷 体彩6+1开奖 七乐彩走势图带连线 新浪彩票1930 e乐彩登录 极速时时彩官方开奖 福建体彩36选7查询今天 广东快乐十分综合走势图表 体彩贵州11选5怎么玩 广东11选5走势图 十分彩网可信吗 刮刮乐怎样用微信兑奖 打羽毛球减肥吗