求救,这个手机号码验证提示能不能不弹出来,改为从文本框后面显示出来?怎么做? 不写alert呗,改成把页面上某个元素的内容填充为你的提示信息 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不用alert()进行弹出,用层来显示,把层的z-index设置在文本框的下方,当不符合条件的时候,先把div的位置设置为文本框的位置,然后弹出div,并且在弹出的时候改变他的高度和宽度,明白~~ window.onclick=function(){ var wind=document.createElement("div"); var mes=document.createElement("div"); mes.innerHTML="你有新消息"; var link=document.createElement("a"); link.href="#"; link.onclick=function(){history.go(1);return false;};//你可忽略。 link.innerHTML="知道了"; wind.appendChild(mes); wind.appendChild(link); wind.style.cssText="position:absolute;top:100px;left:100px; background-color:yellow;border:1px solid yellow;z-index:99;width:150px;height:150px;"; document.body.appendChild(wind);}方法类似于上。。 JS特效问题 有用EXT的吗?问个EXT TextField事件的问题 Macromedia Dreamweaver MX 2004 【【js怎么得到任意天数前的日期???】】 值同步问题 散分100求助一个小问题。我是新手。 关于窗口的问题 Ueditor编辑器问题, 急急急!!!可以加分 简单的IFRAME打开理解问题 请教为啥JS在IE8下运行不了?IE9,搜狗,FF,360都正常 百度地图API InfoWindow不会打开的问题 svg饼图 给文字添加链接 IE
window.onclick=function(){
var wind=document.createElement("div");
var mes=document.createElement("div");
mes.innerHTML="你有新消息";
var link=document.createElement("a");
link.href="#";
link.onclick=function(){history.go(1);return false;};//你可忽略。
link.innerHTML="知道了";
wind.appendChild(mes);
wind.appendChild(link);
wind.style.cssText="position:absolute;top:100px;left:100px; background-color:yellow;border:1px solid yellow;z-index:99;width:150px;height:150px;";
document.body.appendChild(wind);
}方法类似于上。。