菜鸟求助提示信息的问题 解决不了 就下不了班了999啊 点击按纽以后,在本身页面出现Label控件里 修改成功 或 修改失败的 提示,在5秒以后提示信息小时 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><script language=javascript> function a(){ var o=document.getElementById("tip"); //可以在这里写验证是否成功 o.innerHTML="提交成功"; setTimeout("b()",5000); } function b(){ var o=document.getElementById("tip"); o.innerHTML=""; }</script></head><body > <input type=button value="submit" onclick="a();"> <div id="tip"></div></body></html> <!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><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script language="javascript"> function ShowMsg(){ var oLabel=document.getElementById("labMsg"); oLabel.innerHTML="<font color=red>提交成功!</font>"; oLabel.style.display="block"; window.setTimeout('HideMsg()',5000); } function HideMsg(){ var oLabel=document.getElementById("labMsg"); oLabel.style.display="none"; }</script></head><body><label id="labMsg" style="display:none"></label><input name="btnok" type="button" id="btnok" value="确定" onclick="ShowMsg()"/></body></html> 如何让button保持在按下状态 alert对话框问题,速度. 帮忙看看这javascript代码错误在哪里 在线急求,怎么把变量传到这里? 如何定义一个window 在线急等:两个frame中textbox相互赋值的问题,困扰多时了 怎么改变ALERT()的对话框按钮是的文字 怎么实现只在一个新窗口中打开链接? 一道笔试题?? 一个表单上可以多个同名 下拉选择控件 ,做成一个数组控件吗? 想在iframe中加javascript事件 由showModalDialog 模态窗口引发的问题
<head><script language=javascript>
function a(){
var o=document.getElementById("tip");
//可以在这里写验证是否成功
o.innerHTML="提交成功";
setTimeout("b()",5000);
}
function b(){
var o=document.getElementById("tip");
o.innerHTML="";
}
</script>
</head>
<body >
<input type=button value="submit" onclick="a();">
<div id="tip"></div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function ShowMsg(){
var oLabel=document.getElementById("labMsg");
oLabel.innerHTML="<font color=red>提交成功!</font>";
oLabel.style.display="block";
window.setTimeout('HideMsg()',5000);
}
function HideMsg(){
var oLabel=document.getElementById("labMsg");
oLabel.style.display="none"; }
</script>
</head>
<body>
<label id="labMsg" style="display:none"></label>
<input name="btnok" type="button" id="btnok" value="确定" onclick="ShowMsg()"/>
</body>
</html>