日期:2014-05-16  浏览次数:20388 次

帮忙看google搜索框自动提示代码
http://blog.csdn.net/RunUpwind/archive/2007/05/24/1623859.aspx

------解决方案--------------------
就是ajax啊。这样的方法网上成堆了。
------解决方案--------------------
never-online:
http://www.never-online.net/code/neverModules/autocomplete/

JK:
http://jkisjk.spaces.live.com/blog/cns!758CACE25E89DD3B!365.entry

dh20156:
http://www.jxxg.com/dh20156/dhcombobox/dhcombobox.htm
------解决方案--------------------
参考:
<body>
<div id= "divParent " style= "background-color: #ffff00; width: 200px; height: 200px; "> Parent!
<div id= "divChild " style= "background-color: #00ffff; width: 100px; height: 100px; ">
Child!
</div>
</div>
<script type= "text/javascript ">
<!--
var oParent = document.getElementById( "divParent ");
var oChild = document.getElementById( "divChild ");
oParent.onclick = function(){
alert( "Parent ");
}
oChild.onclick = function(e)
{
e = e||window.event;
alert( "Child ");
// 停止冒泡!
// 注释看看效果有何不同!
e.cancelBubble = true;
};
//-->
</script>
</body>
------解决方案--------------------
学习中。。。