JavaScriptÖк¯ÊýµÄ´«µÝ
ÿ´ÎÓÃGoogleµÄ
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(num);
});
¾Í¾õµÃºÜˬ,´«¸öº¯Êý¹ýÈ¥,onclickʼþ¾ÍÄÜ´¥·¢,ÒÔǰ×Ô¼ºÒ²ÏëдÀàËÆµÄ¹¦ÄÜ,¼¸´Î¶¼Ã»¸ã³öÀ´,½ñÌìËæÊÖдÁ½ÐдúÂë·´¶ø¸ã¶¨ÁË.
ʾÀýÈçÏÂ
function test1(a, b) {
b();
}
function test2() {
var ttt = 'hello';
test1(1, function() { alert(ttt); })
}
ÔËÐÐtest2(),µ¯³ö¾¯¸æ"hello"
Ïà¹ØÎĵµ£º
Ч¹ûÑÝʾµØÖ·£ºhttp://www.phzzy.org/code/drag/google_drag.html
ÍÏ×§ÔÀí£º
¹ØÓÚÍÏ×§µÄ»ù´¡£¬¿ÉÒԲο¼ÕâÆªÎÄÕ£¬½²µÃ·Ç³£²»´í¡£
http://www.sohotx.com/mzk/index.php/1007/ArticleContent/298.html
ÆäʵÔÀíºÜ¼òµ¥£¬¾ÍÊǰѰó¶¨Èý¸öʼþ£ºonmousedown , onmousemove , onmouseup¡£
ÔÚÊó±êµãÏÂʱ(onmousedown)° ......
1.document.formName.item("itemName") ÎÊÌâ
˵Ã÷:IEÏÂ,¿ÉÒÔʹÓÃdocument.formName.item("itemName")»ò document.formName.elements["elementName"];FirefoxÏÂ,Ö»ÄÜʹÓà document.formName.elements["elementName"].
½â¾ö·½·¨:ͳһʹÓÃdocument.formName.elements["elementName"].
2.¼¯ºÏÀà¶ÔÏóÎÊÌâ
˵Ã÷:IEÏÂ,¿É ......
±¾ÎIJο¼×Ô£ºhttp://www.cnblogs.com/mophee/archive/2009/03/15/1412590.html
¿´µ½Ò»²©¿ÍÀï̽ÌÖjavascript Àï×÷ÓÃÓòµÄÎÊÌâ
Àý×Ó1£º
var tt = 'aa';
function test(){
alert(tt);
var tt = 'dd';
alert(tt);
}
test();
Àý×Ó2£º
var tt = 'aa';
funct ......
http://www.cnblogs.com/webgis8/articles/1516639.html
¼¸¸ö¿ªÔ´JavascriptͼÐοâ
ÒòΪGoogle MapÏîÄ¿µÄÐèÒª,×î½üÒ»Ö±ÔÚѰÇóÏà¹ØµÄJavascriptͼÐοâ,ÔÚ³¢ÊÔÓÃGoogle Map
APIÌṩµÄjavascript½Ó¿Ú»æÍ¼Ê±·¢ÏÖÆäЧ¹ûºÍЧÂʶ¼²»Ì«ÀíÏë,ͬʱҲÓùýjsgraphics¿â,Ò²²»ÊǺܺÃ.ÓÖÔÚÍøÉÏÕÒµ½ÁËÏÂÃæ¼¸¸ö.
mxGraph
......
if (document.all)
{
yourLogo = "»¶Ó½øÈëÏÊ»¨¹¤·»Íø£¡"; <!--´ýÐýתµÄÎÄ×Ö-->
logoFont = "Arial";   ......