IE滚动条上下两个箭头编程 http://www.wangqi.com/html/2007-01/10026.htm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有没有对IE滚动条直接编程的javascript代码? 刚写的,根据坐标来实下,IE6下可以用<!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>AutoScroll</title></head><script type="text/javascript">//箭头大小var wid = 14, hei = 14;var dir = "";var scrollSize = 10; //每次移动多少个像素var interval = 200; //移动间隔,毫秒document.onmousemove = function(){ var width = document.documentElement.clientWidth; var height = document.documentElement.clientHeight; var x = event.clientX; var y = event.clientY; //document.title = width + "-" + x + "----" + height + "-" + y; if(x > width && x < width + wid){ //向上 if(y > 0 && y < hei){ dir = "up"; }else if(y > height - hei && y < height){ //向下 dir = "down"; }else{ dir = ""; } }else{ dir = ""; } //滚动 if(dir != ""){ startScroll(); }}function startScroll(){ if(dir == "up"){ document.documentElement.scrollTop -= scrollSize; }else if(dir == "down"){ document.documentElement.scrollTop += scrollSize; } if(dir != ""){ setTimeout("startScroll()", interval); }}</script><body><table width="1200" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="100"> </td> </tr> <tr> <td> <table width="700" border="0" align="center" cellpadding="6" cellspacing="0" class="tb"> <tr class="tr"> <td align="center">AutoScroll</td> </tr> <tr> <td align="center"> </td> </tr> </table> </td> </tr> <tr> <td height="1200"> </td> </tr></table> </body></html> 关于输出的问题 急~ 火狐,我恨死你了!这到底什么问题 火狐,谷歌浏览器不支持 Event? ????????????????????? Automation 服务器不能创建对象 的提示 有点难度,请大家帮帮忙,如何自动得到小计和总计 IE11中window.open问题 我是新手,浏览器是如何管理内存的?up有分! 寻找JavaScript编辑工具 急急急!mui+h5如何实现仿支付宝我的应用编辑长按可以添加、删除、拖放 多个form,当一个form提交后,怎么叛断哪个form提交的。 !如果在条件判断语句中只写这条的语句“document.getElementById”,会返回什么呢?
<!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>AutoScroll</title>
</head>
<script type="text/javascript">
//箭头大小
var wid = 14, hei = 14;
var dir = "";
var scrollSize = 10; //每次移动多少个像素
var interval = 200; //移动间隔,毫秒
document.onmousemove = function(){
var width = document.documentElement.clientWidth;
var height = document.documentElement.clientHeight;
var x = event.clientX;
var y = event.clientY;
//document.title = width + "-" + x + "----" + height + "-" + y;
if(x > width && x < width + wid){
//向上
if(y > 0 && y < hei){
dir = "up";
}else if(y > height - hei && y < height){ //向下
dir = "down";
}else{
dir = "";
}
}else{
dir = "";
}
//滚动
if(dir != ""){
startScroll();
}
}
function startScroll(){
if(dir == "up"){
document.documentElement.scrollTop -= scrollSize;
}else if(dir == "down"){
document.documentElement.scrollTop += scrollSize;
}
if(dir != ""){
setTimeout("startScroll()", interval);
}
}
</script>
<body>
<table width="1200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100"> </td>
</tr>
<tr>
<td>
<table width="700" border="0" align="center" cellpadding="6" cellspacing="0" class="tb">
<tr class="tr">
<td align="center">AutoScroll</td>
</tr>
<tr>
<td align="center">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1200"> </td>
</tr>
</table>
</body>
</html>