<script>
function change(id){
var obj = document.getElementById("show");
obj.innerHTML = '<a href=http://www.'+id+'.com><font color="red">'+id+'</font></a>';
}
</script>
<input id="baidu" name="aa" type="radio" onClick="javascript:change(this.value)" value="baidu">baidu
<br><input id="sohu" name="aa" type="radio" onClick="javascript:change(this.value)" value="sohu">sohu
<br><span id="show"></span>
function change(id){
var obj = document.getElementById("show");
obj.innerHTML = '<a href=http://www.'+id+'.com><font color="red">'+id+'</font></a>';
}
</script>
<input id="baidu" name="aa" type="radio" onClick="javascript:change(this.value)" value="baidu">baidu
<br><input id="sohu" name="aa" type="radio" onClick="javascript:change(this.value)" value="sohu">sohu
<br><span id="show"></span>