打印本文 打印本文 关闭窗口 关闭窗口
点击单选框就直接激活链接的css代码
作者:武汉SEO闵涛  文章来源:敏韬网  点击数727  更新时间:2009/4/23 13:50:31  文章录入:mintao  责任编辑:mintao
<html>
<head>
<!--第一步:把如下代码加入到“head”区域中-->
<script>
function go(HrefName) {
window.location.href = HrefName;
}
</script>
</head>
<body>
<!--第二步:把如下代码加入到“body”区域中-->
<form name="form">
<div align="center">
<input type="radio" name="HrefName" onClick="go('http://www.webjx.com/htmldata/sort/3.html');">
选中即激发了超链接<br>
<input type="radio" name="HrefName" onClick="go('http://www.webjx.com/htmldata/sort/1.html');">
选中即激发了超链接<br>
<input type="radio" name="HrefName" onClick="go('http://www.webjx.com/htmldata/sort/5.html');">
选中即激发了超链接<br>
</div>
</form>
</body>
</html>

打印本文 打印本文 关闭窗口 关闭窗口