function checkPhoto(){ var type=""; if(document.getElementById("newphoto").value!=''){ type=document.getElementById("newphoto").value.match(/^(.*)(\.)...
分类:
Web程序 时间:
2015-03-10 19:11:15
阅读次数:
182
varPrice = 100 function getprice (){var Getprice =document.getElementById("price").value;if(Getprice>Price) ...
分类:
Web程序 时间:
2015-03-10 13:45:03
阅读次数:
104
function createInputDialog(obj,id,value)
{
var div=document.getElementById("editBehaviorDiv");
if(div!=null)
document.body.removeChild(div);
div = document.createElement("d...
分类:
Web程序 时间:
2015-03-10 12:18:07
阅读次数:
352
发送中,请稍等... -->
发送中,请稍等...
function show(o1,o2,open)
{
var o1 = document.getElementById(o1);
var o2 = document.getElementById(o2);
o1.style.width = document.documentElement.scrollWidth;
...
分类:
Web程序 时间:
2015-03-10 12:15:55
阅读次数:
341
functionCheckBoxChange() { varr1=document.all.grdTest_selectedRowIndex.value; varx=parseInt(r1)+1; if(document.getElementById("grdTest__ctl"+x+"_chkM....
分类:
其他好文 时间:
2015-03-10 11:46:11
阅读次数:
141
functioncheck(){ varccc=document.getElementById("ID").value; //判断座机格式的 varzuoji=/^0\d{2,3}-?\d{7,8}$/;//座机格式是010-99999999或者01099999999 //判断手机格式可以用 varshouji=/^1[35]\d{9}$/; if(zuoji.test(ccc)||shouji.test(ccc)){ alert("正确!") }..
分类:
移动开发 时间:
2015-03-09 19:18:20
阅读次数:
188
html事件处理程序:直接写在html标签中的事件处理程序 <div onclick="fun()"></div> DOM0级事件处理程序(无兼容性问题) ?document.getElementById(‘fdiv‘).onclick = fun;?function fun() {? alert(1)? } ...
分类:
其他好文 时间:
2015-03-09 11:11:55
阅读次数:
132
一直以来循环运用的都不是很好,所以昨天做了加强的练习。 题目:请将字符串open_my_door这种形式,转成OpenMyDoor的形式。 function changeForm() { var a = document.getElementById("d1").value; a = a.tri.....
分类:
其他好文 时间:
2015-03-09 09:15:53
阅读次数:
128
通过ajax调用WebService服务
var xhr = new ActiveXObject("Microsoft.XMLHTTP");
function sendMsg(){
var name = document.getElementById('name').value;
...
分类:
Web程序 时间:
2015-03-08 13:03:25
阅读次数:
127
想要得到某个元素的某个样式属性,可以用:1 1232 3 var ele = document.getElementById("div01");4 console.log(ele.style.color);但这样只能得到写在元素上的行内样式,对于link进来的样式文件或中写的样式是获取不到的。标准浏...
分类:
其他好文 时间:
2015-03-08 01:20:45
阅读次数:
159