游客:  注册 | 登录 | 会员 | 在线听歌 | 转帖工具 | 三国游戏 | 论坛设施 | 帮助


标题: 类似QQ的自动隐藏菜单条
cjjzhuimeng (cjj)
荣誉会员
Rank: 8Rank: 8


积极发帖会员   忠实会员  
UID 1797
精华 12
积分 13434
帖子 9993
金币 37092 点
月季花 97 朵
阅读权限 100
注册 2006-3-23
来自 乡下
状态 离线
发表于 2006-5-10 00:23  资料  个人空间  短消息  加为好友  添加 cjjzhuimeng 为MSN好友 通过MSN和 cjjzhuimeng 交谈
类似QQ的自动隐藏菜单条

看看左上角,是不是看到效果了.

蓝色月季






顶部
有一颗糖 (俗人)
荣誉会员
Rank: 8Rank: 8
小猪,加油!


护园人   MM勋章   忠实会员  
UID 692
精华 7
积分 7346
帖子 6095
金币 35048 点
月季花 11 朵
阅读权限 100
注册 2006-1-2
来自 空气供应球
状态 离线
发表于 2006-5-10 03:06  资料  个人空间  短消息  加为好友  QQ
木代码呀?





我们结婚吧...
顶部
蓝色月季--歌曲免费在线试听、下载,高速高品质
cjjzhuimeng (cjj)
荣誉会员
Rank: 8Rank: 8


积极发帖会员   忠实会员  
UID 1797
精华 12
积分 13434
帖子 9993
金币 37092 点
月季花 97 朵
阅读权限 100
注册 2006-3-23
来自 乡下
状态 离线
发表于 2006-5-10 03:31  资料  个人空间  短消息  加为好友  添加 cjjzhuimeng 为MSN好友 通过MSN和 cjjzhuimeng 交谈


QUOTE:
<SCRIPT language=JavaScript>
<!--
function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

function MM_timelineStop(tmLnName) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  if (tmLnName == null)  //stop all
    for (var i=0; i<document.MM_Time.length; i++) document.MM_Time.ID = null;
  else document.MM_Time[tmLnName].ID = null; //stop one
}

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn;
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j];
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_initTimelines() {
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(4);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 30;
    document.MM_Time[0][0] = new String("sprite");
    document.MM_Time[0][0].slot = 1;
    if (ns)
        document.MM_Time[0][0].obj = document["Layer1"];
    else
        document.MM_Time[0][0].obj = document.all ? document.all["Layer1"] : null;
    document.MM_Time[0][0].keyFrames = new Array(1, 11, 21);
    document.MM_Time[0][0].values = new Array(2);
    document.MM_Time[0][0].values[0] = new Array(5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5);
    document.MM_Time[0][0].values[0].prop = "left";
    document.MM_Time[0][0].values[1] = new Array(-244,-240,-210,-180,-150,-120,-100,-80,-60,-40,-20,0,-20,-40,-60,-80,-100,-120,-150,-180,-210,-240,-244);
    document.MM_Time[0][0].values[1].prop = "top";
    if (!ns) {
        document.MM_Time[0][0].values[0].prop2 = "style";
        document.MM_Time[0][0].values[1].prop2 = "style";
    }
    document.MM_Time[0][1] = new String("behavior");
    document.MM_Time[0][1].frame = 23;
    document.MM_Time[0][1].value = "MM_timelineGoto('Timeline1','1')";
    document.MM_Time[0][2] = new String("behavior");
    document.MM_Time[0][2].frame = 12;
    document.MM_Time[0][2].value = "MM_timelineStop('Timeline1')";
    document.MM_Time[0][3] = new String("behavior");
    document.MM_Time[0][3].frame = 23;
    document.MM_Time[0][3].value = "MM_timelineStop('Timeline1')";
    document.MM_Time[0].lastFrame = 24;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time.ID = null;
        document.MM_Time.curFrame = 0;
        document.MM_Time.delay = 1000/document.MM_Time.fps;
    }
}
//-->
</SCRIPT>

<DIV id=Layer1
style="height: 250; left: 10; position: absolute; top: 0; width: 148; z-index: 1">
<div align="center">
  <center>
<TABLE border=1 borderColorDark=#ffffff borderColorLight=#808080
cellSpacing=1 width=111>
  <TBODY>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=center bgColor=#fffaf4 borderColorDark=#ffffff
    borderColorLight=#808080 height=12 width=111><font size="2">标题链接</font></TD></TR>
  <TR>
    <TD align=middle bgColor=#D5D5D5 borderColorDark=#FFFFFF
    borderColorLight=#808080 height=24 vAlign=bottom width=111>
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
        <TBODY>
        <TR>
          <TD>
            <P align=center><a onmouseover="MM_timelinePlay('Timeline1')" href="#">
            <font size="3">页
            面 菜 单</font></a></P></TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
  </center>
</div>
</div>






顶部
 


Top
Powered by Discuz! 5.5.0  Style Design by [DST] Rain.stone
Processed in 0.020389 second(s), 7 queries , Gzip enabled
清除 Cookies - 联系我们 - :::月季社区::: - Archiver - WAP
桂ICP备06015952号