求一个不用时能自动折叠,鼠标移动时自动打开的流动工具条,就如大多windows工具实现的一样。
学会搜索
http://www.1000script.com/script/index.asp?typeid=29
以前做过,送给你
<html>
<head>
<title>∷∷∷∷∷∷∷∷</title>
<link rel="stylesheet" type="text/css" href="css/body.css">
<link rel="stylesheet" type="text/css" href="css/table.css">
<SCRIPT LANGUAGE="javascript" src="Menu.js">
</SCRIPT>
</head>
<body onload=Init_Menu() onscroll=MoveMenu() onresize=MoveToolbar()>
<div id="LeftMenu" style="width: 207; height: 272; left: 13; position: absolute; top: 136; z-index: 2" onmouseout=HideMenu(); onmouseover=ShowMenu(); onselectstart=SelectNone() ;>
<table border="0" width="205" cellspacing="0" cellpadding="0" height="194" style="font-size: 9pt">
<tr>
<td width="193" height="76" valign="top" align="center" bgcolor="#FFFFFF">
<div align="center">
<table border="0" width="205" cellspacing="0" cellpadding="0" bordercolor="#0000FF" style="border: 1 solid #D6D6D6" height="202">
<tr>
<td id="Title" width="25" align="left" height="202" valign="middle" rowspan="8" bgcolor="#FFFF93" style="border-right: 1 solid #D6D6D6">
<p align="center"><font size="2">∷<br>
∷<br>
∷<br>
∷<br>
∷<br>
∷<br>
∷<br>
编<br>
程<br>
专<br>
区<br>
∷<br>
∷<br>
∷<br>
∷<br>
∷<br>
∷<br>
∷</font></td>
<td width="180" align="left" height="24" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="XPMenu.htm">编制XP风格菜单
(Dephi)</a></td>
</tr>
<tr>
<td width="180" align="left" height="34" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="XPStyle.htm">软件应用XP风格
& <br>
xxxxxxxx除错
(BCB)</a></td>
</tr>
<tr>
<td width="180" align="left" height="24" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="FontBMP.htm">获取XXXXXXXXXXXXXx
(BCB)</a></td>
</tr>
<tr>
<td width="180" align="left" height="24" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="Hook.htm">系统钩子编程
(BCB)</a></td>
</tr>
<tr>
<td width="180" align="left" height="24" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="KBStatus.htm">即时键盘状态
(BCB)</a></td>
</tr>
<tr>
<td width="180" align="left" height="24" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="GetAdPsw.htm">取Administrator密码
(VC)</a></td>
</tr>
<tr>
<td width="180" align="left" height="24" style="border-bottom: 1 dotted #F2F2F2" valign="middle"> <a style="text-decoration:none" href="xxxxx.htm">我最爱的我最爱的(JavaScript)</a></td>
</tr>
<tr>
<td width="180" align="left" height="24" valign="middle"> <a style="text-decoration:none" href="MoveText.htm">移动文本区域
(JavaScript)</a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<script language="javascript">
<!--
Init_Menu();
setTimeout("MenuHide()", 5000);
MoveMenu();
-->
</script>
</html>
///menu.js
<!--
var ns = false;
var ie = false;
var bStatus = 0;
var BARWIDTH = 27;
var BARHEIGHT = 270;
var iBarW = 0;
var iBarH = 0;
var iMenuLeft = 10;
var iMenu = 118;
function Init_Menu()
{
ns = (document.layers);
ie = (document.all);
if (ns) Menu = document.LeftMenu;
if (ie) Menu = LeftMenu.style;
iBarW = parseInt(Menu.width);
iBarH = parseInt(Menu.height);
}
function MenuShow()
{
bCont = false;
MenuWidth = parseInt(Menu.width);
//MenuHeight = parseInt(Menu.height);//Remark:conch 2002-12-31
if (iBarW<MenuWidth)
{
iBarW += 10;
if (iBarW>MenuWidth) iBarW = MenuWidth;
bCont = true;
}
/*//Remark:conch 2002-12-31
if (iBarH<MenuHeight)
{
iBarH += 10;
if (iBarH>MenuHeight) iBarH = MenuHeight;
bCont = true;
}
*/
if (bCont)
{
if (ns) Menu.clip = "rect(0,"+iBarW+","+iBarH+",0)";
else if (ie) Menu.clip = "rect(0px "+iBarW+"px "+Menu.height+" 0px)";//Modify:conch 2002-12-31
setTimeout("MenuShow()",50);
}
else
bStatus = 0;
}
function MenuHide()
{
if (bStatus != 1)
{
bCont = false;
if (iBarW>BARWIDTH)
{
iBarW -= 10;
if (iBarW<BARWIDTH) iBarW = BARWIDTH;
bCont = true;
}
/*//Remark:conch 2002-12-31
if (iBarH>BARHEIGHT)
{
iBarH -= 10;
if (iBarH<BARHEIGHT) iBarH = BARHEIGHT;
bCont = true;
}
*/
if (bCont)
{
if (ns) Menu.clip = "rect(0,"+iBarW+","+iBarH+",0)";
//else if (ie) Menu.clip = "rect(0px "+iBarW+"px "+iBarH+"px 0px)";//Modify:conch 2002-12-31
else if (ie) Menu.clip = "rect(0px "+iBarW+"px "+Menu.height+" 0px)";
setTimeout("MenuHide()",50);
}
}
else
setTimeout("MenuHide()", 4500);
}
function ShowMenu()
{
bStatus = 1;
MenuShow();
}
function HideMenu()
{
setTimeout("MenuHide()", 5000);
}
function MovetoXY(obj, iX, iY)
{
if (ns)
{
offsetX = parseInt(window.pageXOffset);
offsetY = parseInt(window.pageYOffset);
}
if (ie)
{
offsetX=parseInt(document.body.scrollLeft);
offsetY=parseInt(document.body.scroll);
}
if (obj.left != iX + offsetX) obj.left = iX + offsetX;
if (obj.top != iY + offsetY) obj.top = iY + offsetY;
/*var bCont = false;
if (obj.left != iX + offsetX)
{
obj.left = parseInt(obj.left)+0.01*(iX+offsetX-parseInt(obj.left));
bCont = true;
}
if (obj.top != iY + offsetY)
{
obj.top = parseInt(obj.top) +0.01*(iY+offsetY-parseInt(obj.top));
bCont = true;
}
//setTimeout("MovetoXY(obj, "+iX+", "+iY+")", 1);
if (bCont) setTimeout("MoveMenu()", 10);*/
}
function SelectNone()
{
//LeftMenu.selstart = 0;
//LeftMenu.sellength = 0;
return false;
}
function MoveMenu()
{
MovetoXY(Menu, iMenuLeft, iMenu);
//setTimeout("MoveMenu()", 4);
}
-->