教程集 www.jiaochengji.com
教程集 >  CSS教程  >  正文 点击单选框就直接激活链接的实现代码

点击单选框就直接激活链接的实现代码

发布时间:2019-11-02   编辑:jiaochengji.com
教程集为您提供点击单选框就直接激活链接的实现代码等资源,欢迎您收藏本站,我们将为您提供最新的点击单选框就直接激活链接的实现代码资源
<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy5499')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy5499><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:///htmldata/sort/3.html');">
选中即激发了超链接<br>
<input type="radio" name="HrefName" onClick="go('http:///htmldata/sort/1.html');">
选中即激发了超链接<br>
<input type="radio" name="HrefName" onClick="go('http:///htmldata/sort/5.html');">
选中即激发了超链接<br>
</div>
</form>
</body>
</html>

您可能感兴趣的文章:
点击单选框就直接激活链接的实现代码
PHP用户注册邮箱验证与激活帐号的示例代码
联想预装Windows 8系统激活方法图解
Codeigniter怎么整合Tank Auth权限类库?方法教程
Jquery插件 easyUI属性汇总
PHP用户注册邮箱验证激活帐号示例
Win8.1系统电话激活不能输入微软返回代码怎么办?如何解决?
css 伪类的使用方法详解
office2013 toolkit激活工具使用方法
怎么激活office2010正式版?激活office2010的教程

[关闭]
~ ~