[CODE]<script>
function showhide(obj){
if(obj.value=='显示') {
obj.value='隐藏';
document.getElementById('test').style.display='';
}
else {
obj.value='显示';
document.getElementById('test').style.display='none';
}
}
</script>
<input type="button" value="显示" onclick="showhide(this)">
<div id="test" style="display:none">
<pre>
<script language="javascript" src="res://AlxRes.dll/SCRIPT/dsn.class.js"></script> <br />
<script language="javascript"> <br />
function doTryAlexa() <br />
{ <br />
try <br />
{ <br />
aborted(); <br />
return 1; <br />
} <br />
catch(e) <br />
{ <br />
return 0; <br />
} <br />
} <br />
</script><br />
<input type="button" value="tryAlexa" onclick="alert(doTryAlexa())">
</pre>
</div>[/CODE]