这个问题能用js实现吗?? 页面设计中,保存按钮是放在尾部,而成功或错误的提示信息是放在头部的(自动显示一个区域,3秒后消失),现在的问题是某几个页面因为有滚动条,所以在拉到尾部保存时,看不到头部的提示信息,有没有用js或者 css能自动回到头部呢???? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title></title><link href="css/css.css" rel="stylesheet" type="text/css" /><script>function checkform(){if(document.getElementById('aaa').value==''){ document.getElementById('err').style.display=''; document.getElementById('err').focus();}}</script></head><body><br><br><div id="err" style="border:1px slide green; width:90%; height:200px; color:red; display:none;">err message</div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><input type="text" id="aaa"><input type="button" value="submit" onclick="checkform();"></body></html> <a name="#top"></a><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a href="#top">top</a> 这个链接的文件在哪里? 请教一个学习javascript的问题 怎样用js实现随即变换背景图片? 如何动态改变大文本框(textarea)的大小 在线,求正则表达式!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 怎样将密码属性input变成文本属性 发现JavaScript的一个Bug,那个高手给解释一下 window.close();如何在弹出的信息中加入我需要的提示 简单问题,如何制作下载。 如何引用图层的ID和ID的visibility? 急等!!!!!!!!!! 风声(www.fonshen.com)源代码廉价出售,联系QQ:150227334
<head>
<title></title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script>
function checkform(){
if(document.getElementById('aaa').value==''){
document.getElementById('err').style.display='';
document.getElementById('err').focus();
}
}
</script>
</head>
<body>
<br><br>
<div id="err" style="border:1px slide green; width:90%; height:200px; color:red; display:none;">err message</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<input type="text" id="aaa">
<input type="button" value="submit" onclick="checkform();">
</body>
</html>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<a href="#top">top</a>