选中状态
来源:互联网 发布:软件登陆界面设计 编辑:程序博客网 时间:2024/05/05 16:30
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
.a1{border:1px solid #ffcc00}/*定义onmouseover时的背景边框样式*/
.a2{border:1px solid #ffffff}/*定义onmouseout时的背景边框样式*/
</style>
<script language="javascript">
var n = 5;
function go(c)
{
for (i=1;i<=n ;i++ )
document.getElementById("l"+i).className = "a2";
document.getElementById("l"+c).className ="a1";
}
</script>
</head>
<body>
<table width="200" border="0" cellspacing="0" cellpadding="3">
<tr align="center">
<script language="JavaScript" type="text/javascript">
for(i=1;i<=n ;i++)
document.write('<td class="a2" id="l'+i+'"><a href="#" onClick="go('+i+')">样式'+i+'</a></td>');
//<td class="a2" id="l1"><a href="#" onClick="go('1')">样式1</a></td>
//<td class="a2" id="l2"><a href="#" onClick="go('2')">样式2</a></td>
//<td class="a2" id="l3"><a href="#" onClick="go('3')">样式3</a></td>
//...
</script>
</tr>
</table>
</body>
</html>
- 选中状态
- Clistctrl控件选中状态
- UItableview 取消选中状态
- 导航栏目选中状态
- GridView选中状态
- CListCtrl 设置选中状态
- Android ListView选中状态
- tableView选中状态编辑
- CListCtrl 设置选中状态
- tableview 取消选中状态
- CheckboxTreeviewer选中状态问题
- jq 菜单选中状态
- UItableView的选中状态
- tableView 取消选中状态
- zTree取消选中状态
- 判断checkbox选中状态
- GridView 设置选中状态
- ListView设置选中状态
- FFT and inverse FFT based on OpenCV (Inverse Fourier Transform)
- [ASP.NET] 将Session值储存于SQL Server中.
- 丁大卫的故事
- 在jsp、asp和php网站网页中使用xhtml
- jsp连接oracle实现分页功能的源代码
- 选中状态
- Automation 服务器不能创建对象
- c++中的引用
- 小結SQL Server連接失敗錯誤及解決
- 微软面试题
- 装修设计软件
- Java FAQ(新手必看)
- UnsupportedClassVersionError
- strock函数实现 转载