| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1187 人关注过本帖
标题:请教一个问题,鼠标放到大类上,在大类下方显示小类
只看楼主 加入收藏
zhuzhanjun
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2008-5-3
结帖率:100%
收藏
 问题点数:0 回复次数:2 
请教一个问题,鼠标放到大类上,在大类下方显示小类
我想完成一个这样的功能,当鼠标放在大类上的时候,大类下方小时小类

如何完成这个效果呢...
搜索更多相关主题的帖子: 鼠标 效果 
2008-06-07 11:14
guoxhvip
Rank: 8Rank: 8
来 自:聖西羅南看臺
等 级:贵宾
威 望:44
帖 子:4052
专家分:135
注 册:2006-10-8
收藏
得分:0 
用onmousemove和onmouseout两个事件

愛生活 && 愛編程
2008-06-09 17:20
dahantianzi
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2008-7-1
收藏
得分:0 
这个看看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效|网页特效代码()---大型网站用的下拉导航条</title>
</head>
<body>
<SCRIPT language=JavaScript>
function MM_findObj(n, d) { //v4.0
var p,i,x;if(!d) d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }}
//showhidelayer
function mOvr(src, cOvr)
{if (!src.contains(event.fromElement)) {src.style.cursor = "default";src.bgColor = cOvr;}}
function mOut(src, cOut)
{if (!src.contains(event.toElement)) {src.style.cursor = "default";src.bgColor = cOut;}}
//changetdcolor
</SCRIPT>
      <TABLE border=1 cellPadding=1 cellSpacing=1 width="100">
        <TBODY>
        <TR align=middle class=dmenu>
          <TD>
            <DIV id=menu01 style="POSITION: absolute">
            <DIV id=sub onmouseout="MM_showHideLayers('sub','','hide')"
            onmouseover="MM_showHideLayers('sub','','show')"
            style="HEIGHT: 30px; LEFT: -7px; POSITION: absolute; TOP: 12px; VISIBILITY: hidden; WIDTH: 90px; Z-INDEX: 11">
            <TABLE bgColor=#3c8830 border=0 cellPadding=1 cellSpacing=1
            width=228>
              <TBODY>
              <TR bgColor=#a5db97>
                <TD align=right>
                  <TABLE border=0 cellPadding=4 cellSpacing=1 class=46C92F
                  width=222>
                    <COLGROUP span=3>
                    <COL width="33%">
                    <COL width="33%">
                    <COL width="34%"></COLGROUP>
                    <TBODY>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="sub_new.php">新闻时事</A></TD>
                      <TD><A class=pt03
                        href="sub_sport.php">体育竞技</A></TD>
                      <TD><A class=pt03
                        href="lottery.html">体彩足彩</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="stock/index.php">移动股市</A></TD>
                      <TD><A class=pt03
                        href="sub_ysyl.php">影视娱乐</A></TD>
                      <TD><A class=pt03
                        href="sub_mrxh.php">每日笑话</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="sub_xingzuo.php">星座预测</A></TD>
                      <TD><A class=pt03
                        href="sub_shjy.php">生活教育</A></TD>
                      <TD><A class=pt03
                        href="tvpg.php">电视节目</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="weather.php">天气预报</A></TD>
                      <TD><A class=pt03
                        href="sub_en.php">英语课堂</A></TD>
                      <TD><A class=pt03
                        href="iqpg.php">脑筋急转弯</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="sub_xl.php">心理测试</A></TD>
                      <TD><A class=pt03
                        href="sub_whitedew.php">白领专区</A></TD>
                      <TD><A class=pt03
                        href="sub_eurfootball.php">欧洲足坛</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="sub_zhaopin.php">招聘信息</A></TD>
                      <TD><A class=pt03
                        href="sub_mms.php">彩信新闻</A></TD>
                      <TD><A class=pt03
                        href="sub_bjys.php">保健养生</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></DIV><A
            class=menu href=""
            onmouseout="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','hide','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')"
            onmouseover="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','show','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')">订阅</A>
          </TD>
          <TD>
            <DIV id=menu02 style="POSITION: absolute">
            <DIV id=mo onmouseout="MM_showHideLayers('mo','','hide')"
            onmouseover="MM_showHideLayers('mo','','show')"
            style="HEIGHT: 30px; LEFT: -7px; POSITION: absolute; TOP: 12px; VISIBILITY: hidden; WIDTH: 90px; Z-INDEX: 12">
            <TABLE bgColor=#3c8830 border=0 cellPadding=1 cellSpacing=1
            width=190>
              <TBODY>
              <TR bgColor=#a5db97>
                <TD align=right>
                  <TABLE border=0 cellPadding=4 cellSpacing=1 class=46C92F
                  width=184>
                    <COLGROUP span=2>
                    <COL width="55%">
                    <COL width="45%"></COLGROUP>
                    <TBODY>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03 href="mo/news.html"
                        target=_blank>资讯大全</A></TD>
                      <TD><A class=pt03
                        href="mo/stock.html"
                        target=_blank>股票资讯</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="mo/service.html">短语/图片/铃声</A></TD>
                      <TD><A class=pt03
                        href="mo/shfw.html">生活服务</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="mo/yxcs.html">游戏测试</A></TD>
                      <TD><A class=pt03
                        href="mo/help.html">点播帮助</A></TD></TR>
                    <TR bgColor=#fafef4>
                      <TD><A class=pt03
                        href="mo/0.html">纵横短信</A></TD>
                      <TD><A class=pt03
                        href="mo/bawang.html">霸王短信</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></DIV><A
            class=menu href="mo/"
            onmouseout="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','hide','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')"
            onmouseover="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','hide','mo','','show','brand','','hide','feature','','hide','product','','hide','help','','hide')">点播</A>
          </TD>
         </TR></TBODY></TABLE>
</body>
</html>
2008-07-01 18:57
快速回复:请教一个问题,鼠标放到大类上,在大类下方显示小类
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.039039 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved