您现在的位置是:网站首页> 编程资料编程资料

ajax 自动完成下拉框 自动提示位置问题_AJAX相关_

2023-05-25 579人已围观

简介 ajax 自动完成下拉框 自动提示位置问题_AJAX相关_

复制代码 代码如下:

            function divPosition(){
                var clx,cly;
                clx=event.clientX;
                cly = event.clientY;
                objouter.style.top    = clx+10;
                objouter.style.left    = cly+20; 
                objouter.style.width= getAbsoluteWidth(objInput)
            }

问题出在
                objouter.style.top    = clx+10;
                objouter.style.left    = cly+20; 
                objouter.style.width= getAbsoluteWidth(objInput);
如果改成getAbsoluteTop(objInput);
getAbsoluteLeft(objInput);
在表格里的文本框输入东东就死IE了
但我不知道怎么改


" } } function chageSelection(isUp){ if (objouter.style.display=='none'){ objouter.style.display=''; }else{ if (isUp) selectedIndex++ else selectedIndex-- } var maxIndex = objouter.children.length-1; if (selectedIndexmaxIndex) {selectedIndex=maxIndex} for (intTmp=0;intTmp

-六神源码网