Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascript for Ñ­»·

ÓÐÒ»¸öÑ­»·ÔÚIEÉÏÃæ´´½¨Ãæ
for(var iIndex=0;iIndex<100;iIndex++){
var pPoints=getRandPolygon();
var strPoints=pPoints.join(",");
var poly=new Polygon(strPoints,"transparent", 0,0,"transparent");
var pBound =new Polyline(strPoints,"#ff0000", 1,0.7,1);

_MapApp.addOverlay(poly);
  var strMsg= " ³¤¶È:"+poly.getLength()+",Ãæ»ý:"+poly.getArea();
  poly.data = strMsg ;
  poly.boundry = pBound ;
  
poly.addListener("mouseover",function(e){showtip(poly);});
poly.addListener("mouseout",function(){htm();});


}
Ϊʲôѭ»·ÍêÁË ÒÔºóÊó±êmouseover ʵÌåÉÏshowtip Ö´ÐеĶ¼ÊÇ×îºóÒ»¸öpolyµÄÄÚÈÝ????
ÄãÕâ¸öÊÇÔÚÒ»¸öÑ­»·Öи³ÖµµÄ£¬ ºóÃæµÄ°ÑÇ°ÃæµÄ¸ø¸²¸ÇÁË


try[
code=JScript]poly.addListener("mouseover",function(e){showtip(poly);});
poly.addListener("mouseout",function(){htm();});
------------
(function(){poly.addListener("mouseover",function(e){showtip(poly);});
poly.addListener("mouseout",function(){htm();});
})();[/code]

ÒýÓÃ
±Õ°ü¾­µäÎÊÌâ¡£¡£¡£

JScript code

poly.addListener("mouseover",function(e){showtip(poly);});
//¸ÄΪ

poly.addListener("mouseover",function(p){
return function(e){


Ïà¹ØÎÊ´ð£º

ÐÂÈËjavascriptÎÊÌâÇóÖú£¬Çë¸÷λ´ó¸ç´ó½ãÃÇÀ´°ï棡

ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......

ÈçºÎÓÃjavascriptÔÚÒ³ÃæÖж¯Ì¬¸üÐÂijһ¿éµÄÄÚÈÝ£¿

ÎÒµÄÔ´ÎļþÈçÏ£º
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
    {
     
    ......

JavaScriptµÄdTreeÎÊÌ⣬ÔÚÏßµÈ - Java / Web ¿ª·¢

²úÆ·µÄÅäÖÃÒ³Ãæ¹²ÓÃÒ»¸öÓÃJavaScriptµÄdTreeʵÏÖµÄÊ÷Ðνṹ£¬ÏÔʾµÄʱºò£¬Ê÷Ðνṹ¿¿ÔÚÒ³ÃæµÄ×î×ó±ß£¬¸úÎÒµÄÅäÖÃÒ³ÃæÖмä¸ôÁËÒ»´ó¿é£¬ÏÖÔÚÏë°ÑÊ÷ÐÎĿ¼¾ÓÖУ¬½ô¿¿ÔÚÅäÖÃÄÚÈÝÅԱߣ¬ÈçºÎ¿ØÖÆÊ÷ÐÎĿ¼µÄλÖã¬ÒÔ¼°¿É²»¿ ......

JAVASCRIPTº¯Êý´«ÖµÎÊÌâ

JScript code:

function AddInfo(num)
{
surl ='aaa.asp?Type=Addinfo';
req.open('GET', surl, true);
alert(num);
req.onreadystatechange = AddCustomer(num);
req.send(null);
} ......

datagrid ÈçºÎÈ¡javascriptÖµ

<asp:datagrid id="DataGrid1" runat="server" Width="632px" AutoGenerateColumns="False" OnItemDataBound="DataGrid1_ItemDataBound">
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ