<html><head>
<style type="text/css">
<!--
a {
color: #0000FF;
}
a:hover {
color: #FF0000;
}
-->
</style>
</head><body>
<a href="#">aa</a>
<a href="#">bb</a>
<a href="#">cc</a>
</body>
</html>
<style type="text/css">
<!--
a {
color: #0000FF;
}
a:hover {
color: #FF0000;
}
-->
</style>
</head><body>
<a href="#">aa</a>
<a href="#">bb</a>
<a href="#">cc</a>
</body>
</html>
<a href="#" onclick="co(this)">aa</a> 默认超连接为蓝色
<a href="#" onclick="co(this)">bb</a> 默认超连接为蓝色
<a href="#" onclick="co(this)">cc</a> 默认超连接为蓝色<script>
function co(ev)
{
for(i=0;i<document.getElementsByTagName("a").length;i++)
document.getElementsByTagName("a").item(i).style.color="BLUE";
ev.style.color="Red"
}
</script>
</body>