随笔分类 - JS
摘要:<html><head><title>test</title><link rel="stylesheet" type="text/css" href="./css/test.css" /></head><script> function testdown() //鼠标按下时 { //alert("aaa"); document.getElementById('txtptz').value=1; } function
阅读全文
摘要:<td ><input id="rate2" name="n_rate" value="1" align="center" type="radio" onclick="rate_choice(0)" /><td>function test1(id_value){ if(0==id_value) { alert("ture"); }}
阅读全文
摘要:<td><input id="PTZ1" name="PTZ2" type="radio" value="0" onchange="test1()" /><td>function test1(){ if(document.getElementById("PTZ1").checked) { alert("aa"); }}
阅读全文
摘要:function reboot(){ var con=window.confirm("修改成功!是否重新启动?"); if(con==true) { Reboot(); } else { window.close(); }}
阅读全文
摘要:<!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" xml:lang="yue-Hans" lang="yue-Hans"><head> <meta http-equiv="
阅读全文
摘要:<!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> <title> 使用jQuery解决IE不支持的option disable属性 </title> <meta http-equ
阅读全文
摘要:function settimes() { var time = new Date(); hours = time.getHours(); mins = time.getMinutes(); secs = time.getSeconds(); years = time.getFullYear(); mons = (time.getMonth() + 1); days = time.getDate(); mons = (mons < 10 ? '0' : '') + mons; da...
阅读全文