---
title: "点击显示隐藏菜单，动画效果，半透明，支持所有浏览器"
author: "corangecn"
date: "2014-10-11T15:02:26Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2014-10-11T15:02:26Z"
id: 2128513
url: "https://corangecn.iteye.com/blog/2128513"
---

演示地址:[http://www.corange.cn/demo/3647/index.html](http://www.corange.cn/demo/3647/index.html)  
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"&gt;  
&lt;HTML xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;HEAD&gt;  
&lt;META http-equiv=Content-Type content="text/html; charset=utf-8"&gt;  
&lt;link href="yiwu/styleG3.css" rel="stylesheet" type="text/css"&gt;  
&lt;SCRIPT language=javascript   
src="yiwu/ae.js"   
charset=iso-8859-1&gt;&lt;/SCRIPT&gt;  
&lt;/HEAD&gt;  
&lt;BODY&gt;  
&lt;div style="height:100px;"&gt;&lt;/div&gt;  
&lt;DIV class="sideMenu haveBanner"&gt;  
&lt;BR&gt;  
&lt;SCRIPT language=javascript type=text/javascript&gt;

var zConfig={  
showConfig:{  
width: {to: 532},  
opacity: {to: 1 }  
},  
hiddenConfig:{  
width: {to: 0},  
opacity: {to: 0 }  
},  
showTime:1,  
hiddenTime:1,  
sFireEvent:"click",  
oAppliedFunction:YAHOO.util.Easing.easeOutStrong  
}  
var showAllCategory=new floatDiv();

YUE.on(window,"load",function(){  
if(get('MiniMPTitem')){  
var fixHeight = get('MiniMPTitem').offsetHeight;

if(fixHeight&lt;320){fixHeight=320;}  
get('MinimoreProductTeam').style.height=fixHeight+"px";  
get('moreProductTeam').style.height=fixHeight+"px";  
get('MinimoreProductMaskIframe').style.height=fixHeight+"px";  
get('moreProductTeam').style.display="none";

var xy = \[-128,-135];  
if(!AE.browse.isIE){xy = \[-128,-108]}

var targetXY = YUD.getXY('moreProductTeamBtn');

var midW = YUD.getViewportWidth()/2;  
var isLeft = targetXY\[0] &lt; midW;  
var standX ;  
if(isLeft){  
standX = YUD.getX(YUD.getElementsByClassName('customGroup','div',get('mainContent'))\[0]);  
xy\[0] = standX - targetXY\[0];  
}else{  
standX = YUD.getX(get('mainContent')) + get('mainContent').offsetWidth;  
xy\[0] = standX - targetXY\[0] - 30;  
}

showAllCategory.init('moreProductTeamBtn','moreProductTeam',xy,zConfig);

}  
}  
);

&lt;/SCRIPT&gt;

&lt;DIV class=customGroup&gt;  
&lt;H3&gt;&lt;A href="#"&gt;www.corange.cn  
&lt;/A&gt;&lt;/H3&gt;  
&lt;UL&gt;  
&lt;LI&gt;&lt;A href="http://www.corange.cn/html/corange\_2\_1.html"&gt;Php&lt;/A&gt;   
&lt;LI&gt;&lt;A href="http://www.corange.cn/html/corange\_15\_1.html"&gt;JS/Jquery/Ajax &lt;/A&gt;   
&lt;LI&gt;&lt;A href=""&gt;1&lt;/A&gt;   
&lt;LI&gt;&lt;A href=""&gt;2&lt;/A&gt;   
&lt;LI&gt;&lt;A href=""&gt;3&lt;/A&gt;   
&lt;LI&gt;&lt;A href=""&gt;4&lt;/A&gt;  
&lt;/LI&gt;  
&lt;/UL&gt;  
&lt;DIV class=customGroupfooter&gt;&lt;A class=more id=moreProductTeamBtn   
href="javascript:void(0)"&gt;See More&lt;/A&gt; &lt;/DIV&gt;  
&lt;/DIV&gt;

&lt;DIV class=customGroupMore id=MinimoreProductTeam&gt;  
&lt;DIV class=MiniMPTcontainer id=moreProductTeam&gt;&lt;IFRAME   
class=MinimoreProductMaskIframe id=MinimoreProductMaskIframe   
style="HEIGHT: 200px" src="about:blank" frameBorder=0&gt;&lt;/IFRAME&gt;&lt;SPAN   
class=MiniMPTclosebtn&gt;&lt;A onclick=showAllCategory.hiddenContentForce()   
href="javascript:void(0);"&gt;&lt;IMG height=17   
src="yiwu/close\_more\_product\_team.gif"   
width=42 border=0&gt;&lt;/A&gt;&lt;/SPAN&gt;   
&lt;DIV class=MiniMPTitem id=MiniMPTitem&gt;&lt;BR&gt;  
&lt;UL&gt;  
&lt;LI class=column&gt;&lt;A   
href=""&gt;1&lt;/A&gt; &lt;/LI&gt;  
&lt;LI class=column&gt;&lt;A   
href=""&gt;2&lt;/A&gt; &lt;/LI&gt;  
&lt;LI class=column&gt;&lt;A   
href=""&gt;3&lt;/A&gt; &lt;/LI&gt;  
&lt;LI class=column&gt;&lt;A   
href=""&gt;4&lt;/A&gt; &lt;/LI&gt;  
&lt;LI class=column&gt;&lt;A   
href=""&gt;5&lt;/A&gt; &lt;/LI&gt;

&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;  
&lt;/DIV&gt;  
&lt;/BODY&gt;&lt;/HTML&gt;  
js，图片，css文件  
[http://www.corange.cn//uploadfiles/0606\_55703.rar](http://www.corange.cn//uploadfiles/0606_55703.rar)

[![http://www.corange.cn//uploadfiles/0606_38781.jpg](http://www.corange.cn//uploadfiles/0606_38781.jpg)](http://www.corange.cn//uploadfiles/0606_38781.jpg)

原文地址:[http://www.corange.cn/archives/2010/06/3647.html](http://www.corange.cn/archives/2010/06/3647.html)