中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > Web开发 > JavaScripts > 综合文章
Menu
作者:未知 时间:2002-04-12 12:12 出处:Blog 责编:chinaitpower
              摘要:暂无
<style>



body,td,a  {font-size:9pt;color:black;text-decoration:none}



.normal  {padding:2px}



.up  {padding:1px;border:#999999  1px  solid;background:#cccccc}



.down  {padding:1px;border:dbdbdb  1px  solid;background:dbdbdb}



</style>



<body  onmousemove="move()">



<div  style="position:absolute;z-index:1;width:1;height:1;  left:  100;  top:  100"  ID=plane  onmousedown="down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)"  onmouseup="down=false">  



<table  id="td123"  cellspacing=2  width=100  border=0  style="BORDER:#999999  1px  solid;cursor:hand"  cellpadding="0"  bgcolor="f4f4f4">



<tr>



<td  bgcolor="#cccccc"  height="20"  style="BORDER:#999999  1px  solid;cursor:move">



<div  align="center">透明的菜单</div>



</td>



</tr>



<tr>



<td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this),menu1.style.visibility='visible'"  onMouseOut="this.className='normal',low(this),menu1.style.visibility='hidden'"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'"  >



<div  align="right">有下级菜单>></div>



</td>



</tr>



<tr>



<td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this),menu2.style.visibility='visible'"  onMouseOut="this.className='normal',low(this),menu2.style.visibility='hidden'"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'"  >



<div  align="right">有下级菜单>></div>



</td>



</tr>



<tr>



<td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">



<div  align="right">无下级菜单>></div>



</td>



</tr>



<tr>



<td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">



<div  align="right">无下级菜单>></div>



</td>



</tr>



</table>



<script  language="JavaScript">



<!--



function  flashit(){



if  (!document.all)



return



if  (td123.style.borderColor=="#666666")



td123.style.borderColor="#999999"



else



td123.style.borderColor="#666666"



}



setInterval("flashit()",  500)



//-->



</script>



<script  language="javascript">



<!--



function  high(image)



{



theobject=image



highlighting=setInterval  ("highlightit(theobject)",100)



}



function  low(image)



{



clearInterval(highlighting)



image.filters.alpha.opacity=50



}



function  highlightit(cur2)



{



if  (cur2.filters.alpha.opacity<100)



cur2.filters.alpha.opacity+=20



else  if  (window.highlighting)



clearInterval  (highlighting)



}



//-->



</script>



<script>



var  over=false,down=false,divleft,divtop;



function  move(){



if(down){



plane.style.left=event.clientX-divleft;



plane.style.top=event.clientY-divtop;



}



}



</script>



    <div  id="menu2"  style="position:absolute;top:45px;left:96;  z-index:1;  visibility:  hidden;  width:  105"



onMouseOver=this.style.visibility='visible'



onMouseOut=this.style.visibility='hidden'>  



        <table  cellspacing=2  width=100  border=0  style="BORDER:#999999  1px  solid;cursor:hand"  cellpadding="0"  bgcolor="f4f4f4"  align="right">



            <tr>  



                <td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



                    <div  align="center">子菜单</div>



                </td>



            </tr>



            <tr>  



                <td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



                    <div  align=center>子菜单</div>



                </td>



            </tr>



            <tr>  



                <td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



                    <div  align=center>子菜单</div>



                </td>



            </tr>



            <tr>  



                <td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



                    <div  align=center>子菜单</div>



                </td>



            </tr>



        </table>



    </div>



    <div  id="menu1"  style="position:absolute;top:24px;left:96px;  z-index:1;  visibility:  hidden;  width:  105"



onMouseOver=this.style.visibility='visible'



onMouseOut=this.style.visibility='hidden'>  



        <table  cellspacing=2  width=100  border=0  style="BORDER:#999999  1px  solid;cursor:hand"  cellpadding="0"  bgcolor="f4f4f4"  align="right">



            <tr>  



                <td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



                    <div  align="center">子菜单</div>



                </td>



            </tr>



            <tr>  



                <td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



                    <div  align=center>子菜单</div>



                </td>



            </tr>



<tr>  



<td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



<div  align=center>子菜单</div>



</td>



</tr>



<tr>  



<td  class=normal  onMouseDown="this.className='down'"



onMouseOver="this.className='up',high(this)"  onMouseOut="this.className='normal',low(this)"  style="filter:alpha(opacity=50)"onMouseUp="this.className='up'">  



<div  align=center>子菜单</div>



</td>



</tr>



</table>



</div>



</div>
关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有