[查看演示] 源码如下 ---------------------------------------------------------- <HTML>
<HEAD>
<TITLE>有下拉菜单的复选-www.51windows.Net</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="51windows,海娃,haiwa">
<META NAME="Description" CONTENT="Power by 51windows.Net">
</HEAD>
<body bgcolor="#336699">
<div id=haiwa style="background-color: #EEEEEE; border: 1 solid #000000; width: 120; height: 20;overflow:auto" onmouseover=this.style.height="120"; onmouseout=haiwa.style.height='20';>
<SCRIPT language=JavaScript>
var i=0;
for(i=1;i<20;i++)
{
document.write("<div style=\"height:20px;cursor:default;font-family: Tahoma; font-size: 12px; font-weight: bold\" onclick=haiwa.style.height=\"20\";document.all.haiwa.scrollTop=0><input type='checkbox' style='height:15px;' name='ck' id=ck"+i+"><label for='ck"+i+"'>第"+i+"项</label></div>");
}
</SCRIPT>
</div>
</body>
</html>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div> |