复制内容到剪贴板 程序代码
<script language=Jscript>
function run(obj){
if (f1.code.value==''||f1.code.value==' '){alert("您需要运行的代码为空!");obj.focus()}
else{var winEx = window.open("", "winEx", "width=400,height=300,resizable=yes,top=0,left=0");
winEx.document.write(f1.code.value);winEx.document.close()}}
</script>
<style>body{color:#063;font-family:arial;font-size:12}
textarea{border:1 solid #000;font-family:arial;font-size:12;width:100%;color:red;margin:5 0}
</style>
function run(obj){
if (f1.code.value==''||f1.code.value==' '){alert("您需要运行的代码为空!");obj.focus()}
else{var winEx = window.open("", "winEx", "width=400,height=300,resizable=yes,top=0,left=0");
winEx.document.write(f1.code.value);winEx.document.close()}}
</script>
<style>body{color:#063;font-family:arial;font-size:12}
textarea{border:1 solid #000;font-family:arial;font-size:12;width:100%;color:red;margin:5 0}
</style>
Tags: 运行此代码
换了一个skin,主要是想换换心情。接下来我对这个blog进行了很多先前没有优化,还有添加了些新功能。比如说,每篇日志下的选项卡功能,这个功能最早是用了onmousemove,但总觉得鼠标放上就变化,感觉不稳。所以现在换成onmousedown。呵呵
Tags: onmousemove onmousedown 鼠标
<SCRIPT LANGUAGE="JavaScript">
<!--
var width = 300; //设置层 宽
var height = 300; // 设置层 高
function init(){
document.all.im.width = width;
document.all.im.height = height;
}
function a( e ){
document.all.im.src = e.src;
document.all.d.style.left = event.x;
document.all.d.style.top = event.y;
document.all.d.style.display = "";
}
</div>