标签:style io ar sp div on cti bs amp
js 控制a标签的onclick方法
document.getElementById("a3").onclick = "";
window.document.getElementById("a3").disabled = "disabled";
<a class="process_Btn process_Btn1_green" id="a1" onclick="dx()"></a>
js 控制div 显示隐藏
document.getElementById(‘renwuCon‘).style.display = "none";
document.getElementById(‘rwcl‘).style.display = "none";
js 控制a标签的css属性
document.getElementById("a1").className = "process_Btn process_Btn1_yellow";
document.getElementById("a2").className = "process_Btn process_Btn1_gray";
js 获取地址栏的值
Request = {
QueryString: function (item) {
var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)", "i"));
return svalue ? svalue[1] : svalue;
}
}
var zt = Request.QueryString("zt")
js控制a标签的href
document.getElementById("db").href="#";
标签:style io ar sp div on cti bs amp
原文地址:http://www.cnblogs.com/zcwry/p/jq_hqdzl.html