87,989
社区成员
发帖
与我相关
我的任务
分享<div onclick=function kill(){return false} >
<a href="http://www.163.com">www.163.com</a>
</div><!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>
</head>
<body>
<div id="down_load_false" style="a {poorfish:expression(this.onclick=function kill(){return false})}">
<a href="http://www.163.com">www.163.com</a>
</div>
<input type="button" id="btn" value="接触锁定" />
<script language="javascript">
window.onload = function() {
document.getElementById('btn').onclick = function() {
document.getElementById('down_load_false').style = '';
}
}
</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>
<style>
a {poorfish:expression(this.onclick=function kill(){return false;})}
</style>
</head>
<body>
<div id="down_load_false">
<a href="http://www.163.com">www.163.com</a>
</div>
<input type="button" id="btn" value="接触锁定" />
<script language="javascript">
window.onload = function() {
document.getElementById('btn').onclick = function() {
document.getElementById('down_load_false').onclick = function(){return true;}
//document.getElementById('down_load_false').style 这里的代码要怎么写,才能让链接失效的状态变为链接有效?
}
}
</script>
</body>
</html>