![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
mafei912
这个作者很懒,什么都没留下…
展开
-
虚假进度条提示
function getcodesms_Click() { showDiv(); } function showDiv() { var cv = document.getElementById("pro"); cv.style.display = 'block'; }原创 2012-04-13 16:12:42 · 366 阅读 · 0 评论 -
文本框提示内容
无标题页 function cls(){//捕获触发事件的对象,并设置为以下语句的默认对象with(event.srcElement) //如果当前值为默认值,则清空if(value==defaultValue) value=""}function res(){//捕获触发事件的对象,并设置为以下语句的默认对象with(event.srcEle原创 2012-04-17 10:19:28 · 377 阅读 · 0 评论 -
javascript知识累计
greeting=(visitor=="PRES")?"Dear President ":"Dear ";如果变量 visitor 中的值是 "PRES",则向变量 greeting 赋值 "Dear President ",否则赋值 "Dear"。document.write(Math.random());返回随机数document.write(Math.random()*(20原创 2012-09-06 11:42:06 · 230 阅读 · 0 评论