<script language="javascript>
</script>
可以放在.htm的任意位置,可能那个函数是内置的,或者是某个对象的方法.......

解决方案 »

  1.   

    URL为http://www.51.ca/house/rentmap.php?s=209275bb7635972510cff1bbccf44bc6,大家看一下它的源文件中的一个函数funSearchCity()在哪里定义的。
      

  2.   

    function funSearchCity()
    {
    //|| !funCheckScope(theform.scope) 
    var theform = fetch_object('SearchForm');
    if(!validate(theform))
    {
    return false;
    } var citygeodata = theform.citychoice.value.split(',');

    mylongitude = citygeodata[0];
    mylatitude = citygeodata[1];
    myzoomlevel = citygeodata[2];
    loadpoints = 1;

    map.centerAndZoom(new GPoint(mylongitude, mylatitude), myzoomlevel);

    loadedbounds['init'] = 0;
    centerer = { 'init': 1, 'x' : mylongitude, 'y' : mylatitude, 'html' : langStr['citycenter'] }; map.clearOverlays(); 
    plotVisibleMarkers();  return false;
    }
      

  3.   

    To:y7967(遥遥之途,远且坎坷) 
    谢谢你的回复,不过我还是不明白,这个函数的定义你从哪个文件中找到的?
      

  4.   

    <script language="" src="">应该是在src所在的路径下面..........
      

  5.   

    有四个js文件可是我没有在这四个文件下面发现funSearchCity()的定义啊。
      

  6.   

    To:y7967(遥遥之途,远且坎坷) 
    有位大哥告诉我,引用的js用Encrypt HTML Pro加密过,那么你是怎么看到的funSearchCity()的定义那?
      

  7.   

    晕.今天才看见你问我怎么找到的?你安装maxthon浏览器豪华版,然后在工具栏会有一个ViewPage按钮.可以查看页面的源代码,但是要比IE本身的"查看源文件"好用,会把这个页面用到的所有内容都显示出来,当然包括那些js脚本.加密了的也会正常显示.如果用普通方法找,肯定也能找到,可能你没找仔细,或者脚本被加密了,需要用工具还原.你想啊,js这些东西是客户端的东西,肯定要被下载到本地的,所以一定能找到.