<%@ Page Language="C#" AutoEventWireup="true" CodeFile="aleft.aspx.cs" Inherits="Admin_Admin_left" %><!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language=javascript>
function menuShow(obj,maxh,obj2)
{
if(obj.style.pixelHeight<maxh)
{
obj.style.pixelHeight+=maxh/10;
obj.filters.alpha.opacity+=20;
obj2.bgcolor="green";
if(obj.style.pixelHeight==maxh/10)
obj.style.display='block';
myObj=obj;
myMaxh=maxh;
myObj2=obj2;
setTimeout('menuShow(myObj,myMaxh,myObj2)','5');
}
}
function menuHide(obj,maxh,obj2)
{
if(obj.style.pixelHeight>0)
{
if(obj.style.pixelHeight==maxh/5)
obj.style.display='none';
obj.style.pixelHeight-=maxh/5;
obj.filters.alpha.opacity-=10;
obj2.bgcolor="black";
myObj=obj;
myMaxh=maxh
myObj2=obj2;
setTimeout('menuHide(myObj,myMaxh,myObj2)','5');
}
else
if(whichContinue)
whichContinue.click();
}
function menuChange(obj,maxh,obj2)
{
if(obj.style.pixelHeight)
{
menuHide(obj,maxh,obj2);
whichOpen='';
whichcontinue='';
}
else
if(whichOpen)
{
whichContinue=obj2;
whichOpen.click();
}
else
{
menuShow(obj,maxh,obj2);
whichOpen=obj2;
whichContinue='';
}
}
</script>
<script language=javascript>
var whichOpen="";
var whichContinue='';
</script>
</head>
<body leftmargin="0" topmargin="0" bgcolor="#FF9800">
<table cellSpacing=0 cellPadding=0 width=158 align=center>
<tbody>
<tr style="CURSOR: pointer">
<td class=menu_title id=menuTitle2
onmouseover="this.className='menu_title2';"
onclick=menuChange(menu2,30,menuTitle2);
onmouseout="this.className='menu_title';"
bgcolor=blue
height=25><span>A</span> </td>
</tr>
<tr>
<td valign="middle" >
<div class=sec_menu id=menu2
style="DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 158px; HEIGHT: 0px">
<table cellSpacing=2 cellPadding=0 width=135 align=center>
<tr>
<td style="height: 25px"><a href="#" target="BoardList">ccc</a></td>
</tr>
<tr>
<td style="height: 25px"><a href="#" target="BoardList">ddd</a></td>
</tr>
</table>
</div></td></tr></tbody></table>
<br>
<table cellSpacing=0 cellPadding=0 width=158 align=center>
<tbody>
<tr style="CURSOR: pointer">
<td class=menu_title id=menuTitle4
onmouseover="this.className='menu_title2';"
onclick=menuChange(menu4,30,menuTitle4);
onmouseout="this.className='menu_title';"
bgcolor=blue
height=25><span>B</span> </td>
</tr>
<tr>
<td valign="middle"> <div class=sec_menu id=menu4
style="DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 158px; HEIGHT: 0px">
<table cellSpacing=2 cellPadding=0 width=135 align=center>
<tr>
<td style="height: 25px"><a href="#" target="BoardList">aaa</a></td>
</tr>
<tr>
<td style="height: 24px"><a href="#" target="BoardList">bbb</a></td>
</tr>
</table>
</div></td>
</tr>
</tbody>
</table>
</body>
</html>
经测试IE上能用,火狐不支持,怎么改才会都能用?
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language=javascript>
function menuShow(obj,maxh,obj2)
{
if(obj.style.pixelHeight<maxh)
{
obj.style.pixelHeight+=maxh/10;
obj.filters.alpha.opacity+=20;
obj2.bgcolor="green";
if(obj.style.pixelHeight==maxh/10)
obj.style.display='block';
myObj=obj;
myMaxh=maxh;
myObj2=obj2;
setTimeout('menuShow(myObj,myMaxh,myObj2)','5');
}
}
function menuHide(obj,maxh,obj2)
{
if(obj.style.pixelHeight>0)
{
if(obj.style.pixelHeight==maxh/5)
obj.style.display='none';
obj.style.pixelHeight-=maxh/5;
obj.filters.alpha.opacity-=10;
obj2.bgcolor="black";
myObj=obj;
myMaxh=maxh
myObj2=obj2;
setTimeout('menuHide(myObj,myMaxh,myObj2)','5');
}
else
if(whichContinue)
whichContinue.click();
}
function menuChange(obj,maxh,obj2)
{
if(obj.style.pixelHeight)
{
menuHide(obj,maxh,obj2);
whichOpen='';
whichcontinue='';
}
else
if(whichOpen)
{
whichContinue=obj2;
whichOpen.click();
}
else
{
menuShow(obj,maxh,obj2);
whichOpen=obj2;
whichContinue='';
}
}
</script>
<script language=javascript>
var whichOpen="";
var whichContinue='';
</script>
</head>
<body leftmargin="0" topmargin="0" bgcolor="#FF9800">
<table cellSpacing=0 cellPadding=0 width=158 align=center>
<tbody>
<tr style="CURSOR: pointer">
<td class=menu_title id=menuTitle2
onmouseover="this.className='menu_title2';"
onclick=menuChange(menu2,30,menuTitle2);
onmouseout="this.className='menu_title';"
bgcolor=blue
height=25><span>A</span> </td>
</tr>
<tr>
<td valign="middle" >
<div class=sec_menu id=menu2
style="DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 158px; HEIGHT: 0px">
<table cellSpacing=2 cellPadding=0 width=135 align=center>
<tr>
<td style="height: 25px"><a href="#" target="BoardList">ccc</a></td>
</tr>
<tr>
<td style="height: 25px"><a href="#" target="BoardList">ddd</a></td>
</tr>
</table>
</div></td></tr></tbody></table>
<br>
<table cellSpacing=0 cellPadding=0 width=158 align=center>
<tbody>
<tr style="CURSOR: pointer">
<td class=menu_title id=menuTitle4
onmouseover="this.className='menu_title2';"
onclick=menuChange(menu4,30,menuTitle4);
onmouseout="this.className='menu_title';"
bgcolor=blue
height=25><span>B</span> </td>
</tr>
<tr>
<td valign="middle"> <div class=sec_menu id=menu4
style="DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 158px; HEIGHT: 0px">
<table cellSpacing=2 cellPadding=0 width=135 align=center>
<tr>
<td style="height: 25px"><a href="#" target="BoardList">aaa</a></td>
</tr>
<tr>
<td style="height: 24px"><a href="#" target="BoardList">bbb</a></td>
</tr>
</table>
</div></td>
</tr>
</tbody>
</table>
</body>
</html>
经测试IE上能用,火狐不支持,怎么改才会都能用?
解决方案 »
- 客户要做一个类似这样的网站,应该报多少钱
- WCF中的配置文件问题、
- 为什么说在对大型集合进行循环访问的情况下,装箱和取消装箱的影响非常明显。
- 关于global.asax的问题。。。。。项者有分
- 请教为什么gridview不能显示图片
- 订单编号怎么写?用Mssql或者是C#的
- asp.net应用程序中,放置了多个按钮,怎么设置其中的某个为默认按钮啊?
- 框架中点击一个按钮刷新多个frame的问题,谢谢大家
- 救命啊!asp.net,ajax+一般处理程序,5秒获取一次,固定会周期性的卡
- Ext:GriPanel操作中的审核和归档,根据某一列来隐藏
- 求PDF页面转成图片的控件
- 生成网站的时候报这个错是什么原因?曾经运行该线程的应用程序域已卸载
*
* 等 级:
发表于:2007-10-05 16:24:263楼 得分:0
先参考楼上的,有些层div操作在火狐浏览器里面还是有缺陷的============================
是 IE 有缺陷~
收费的!!
if (Number(obj.style.height.replace('px', '')) < maxh) {
obj.style.height = (Number(obj.style.height.replace('px', '')) + maxh / 10) + 'px';
if (document.all)
obj.filters.alpha.opacity += 10;
else
obj.style.opacity = Number(obj.style.opacity) + 0.1;
obj2.background = "images/title_bg_hide.gif";
if (Number(obj.style.height.replace('px', '')) == maxh / 10)
obj.style.display = 'block';
myObj = obj;
myMaxh = maxh;
myObj2 = obj2;
setTimeout(function() { menuShow(myObj, myMaxh, myObj2) }, 5);
}
}
function menuHide(obj, maxh, obj2) {
if (Number(obj.style.height.replace('px', '')) > 0) {
if (Number(obj.style.height.replace('px', '')) == maxh / 5)
obj.style.display = 'none';
obj.style.height = (Number(obj.style.height.replace('px', '')) - maxh / 5) + 'px';
if (document.all)
obj.filters.alpha.opacity -= 20;
else
obj.style.opacity = Number(obj.style.opacity) - 0.2;
obj2.background = "images/title_bg_show.gif";
myObj = obj;
myMaxh = maxh
myObj2 = obj2;
setTimeout(function() { menuHide(myObj, myMaxh, myObj2) }, 5);
}
else
if (whichContinue != '' && whichContinue != null)
whichContinue.click();
}
function menuChange(id1, maxh, id2) {
var obj = document.getElementById(id1);
var obj2 = document.getElementById(id2);
if (Number(obj.style.height.replace('px', '')) != 0) {
menuHide(obj, maxh, obj2);
whichOpen = '';
whichcontinue = '';
}
else
if (whichOpen != '' && whichOpen != null) {
whichContinue = obj2;
whichOpen.click();
}
else {
menuShow(obj, maxh, obj2);
whichOpen = obj2;
whichContinue = '';
}
}调用:menuChange('id1', 130, 'id2')