日期:2014-05-16 浏览次数:20381 次
<html>
<head>
</head>
<body>
<a href="b.html?index=1">任务流程</a>
<a href="b.html?index=2">常见问题</a>
<a href="b.html?index=3">相关链接</a>
<script type="text/javascript">
</script>
</body>
</html>
<!DOCTYPE html PUBliC "-//W3C//dtD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/dtD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
window.onload = function(){
var url = location.search; //获取url中"?"符后的字串
if (url.indexOf("?") != -1) {
var str = url.substr(1);
var index = str.split("=")[1] - 1;
document.getElementsByTagName('a')[index].style.display = 'block';
}
}
</script>
<body>
<a href="b.html?index=1" style="display:none">任务流程</a>
<a href="b.html?index=2" style="display:none">常见问题</a>
<a href="b.html?index=3" style="display:none">相关链接</a>
</body>
</html>