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

Ìæ»»Select±êÇ©µÄjavascriptÀà

// ÏÂÀ­ÁбíÀà
// PubEdition: Version 1.0.0.0
// ModifyDate: 2009-12-09 9:30:00
// FinishDate: 2009-12-09 9:30:00
// AuthorName: binbin( Mail:pl45@163.com / Tel:13893302154 )
var droplistswap=function(){};
droplistswap.prototype.originalElement=new Array();
// droplistswap.prototype.hidedroplist=function(evt){
// var my = this;
// var _event = window.event?window.event:evt;
// var obj = _event.toElement?_event.toElement:_event.relatedTarget;
// while( obj!=null && obj.id!="droplistElement"){
// obj = obj.parentNode;
// }
// if(obj==null)document.getElementById("droplistElement").style.display="none";
// }
droplistswap.prototype.initialize=function(DropID,index){

var my = this;
my.originalElement.push(document.getElementById(DropID));
var selectElement=document.createElement('div');
selectElement.innerHTML="<label>"+document.getElementById(DropID).options[document.getElementById(DropID).selectedIndex].text+"</label>";
//selectElement.style.position="relative";
selectElement.id="selectElement"+index;
selectElement.className="droplistswap";
//selectElement.style.width="80px";
selectElement.style.top=document.getElementById(DropID).style.top;
selectElement.style.left= document.getElementById(DropID).style.left;

document.getElementById(DropID).parentNode.appendChild(selectElement);

document.getElementById(DropID).style.display="none";
//functionµÄ²ÎÊýÃû³Æ²»ÄܺÍÀà³ÉÔ±µÄ²ÎÊýÃû³ÆÏàͬ
// my.addEventListener(document,"click",function(event){my.hidedroplist.call(my,event)});
my.addEventListener(selectElement,"click",function(event,p_ID,p_Index){my.handledroplist.call(my,event,DropID,index)});
}
droplistswap.prototype.handledroplist=function(evt,DropID,OriIndex)
{
var my = this;
//alert(OriIndex);
var _event = window.event?window.event:evt;
// if( _event == null ||typeof(_event) == 'undefined'){
// var _fun = my


Ïà¹ØÎĵµ£º

Ò»¸ö´øCheckBoxµÄÊ÷ÐÎĿ¼µÄµÝ¹éËã·¨£¨javascript£©


°¦£¬ºÜ¾ÃÒÔǰдµÄ´úÂ룬ɹһɹ£¬¹À¼Æ×Ô¼º¿´¶¼¿´²»¶®ÁË£¬:(
var head="display:''"
img_close=new Image()
img_close.src="/sysManage/images/f.gif"
img_open=new Image()
img_open.src="/sysManage/images/fo.gif"
img3=new Image()
img3.src="/sysManage/images/e.gif" ......

javascript replace µÄÕýÔò±í´ïʽ

replace()×î¼òµ¥µÄËãÊÇÄÜÁ¦¾ÍÊǼòµ¥µÄ×Ö·ûÌæ»»¡£ ʾÀý´úÂëÈçÏ£º
ËüÖ»Ìæ»»ÁËÊ××Öĸ¡£µ«Èç¹û¼ÓÉÏÕýÔò±í´ïʽ½á¹û¾Í²»Ò»ÑùÁË£¡replace()Ö§³ÖÕýÔò±í´ïʽ£¬Ëü¿ÉÒÔ°´ÕÕÕýÔò±í´ïʽµÄ¹æÔòÆ¥Åä×Ö·û»ò×Ö·û´®£¬È»ºó¸øÓèÌæ»»£¡ ×¢Ò⣺±»Ìæ»»µÄ²¿·Ö²»ÓüÓË«ÒýºÅ.
ÕâÑù»¹ÊÇÖ»Ìæ»»Á˵ÚÒ»¸ö×Öĸa¡£
ÓÉÉÏ¿ÉÖª£¬µ±ÕýÔò±í´ïʽÓÐ"g"±ê־ʱ£¬´ ......

Àí½âjavascript argumentsµÄÀý×Ó

±¾ÎÄת×Ô£ºhttp://bbs.51js.com/viewthread.php?tid=85083&extra=page%3D1
ÔÚ×Ô¶¨ÒåµÄº¯ÊýÖУ¬Èç¹ûÒªÏòº¯ÖÐÌύһЩ²ÎÊý£¬Ï°¹ßÐԵشó¼Ò»áÔÚº¯ÊýÖж¨Òå
Àý£º<script>
function test(a,b){
       alert(a);
       alert(b);
}
test("µÚÒ»´Î" ......

JavaScriptÌâÐÍ

1£®ÈçºÎ»ñÈ¡±íµ¥<select>ÓòµÄÑ¡Ôñ²¿·ÖµÄÎı¾£¿
<form name="a">
<select name="a" size="1" onchange="_sel(this)">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
</select>
</form&g ......

ASCתºº×Ö£¬ºº×ÖתASC[Native2AsciiµÄJavaScriptʵÏÖ]

ÎÒÃdz£³£ÔÚ±àдJava³ÌÐòʱ»áÓõ½PropertiesÎļþ£¬°ÑһЩMessageµÈÐÅÏ¢·ÅÔÚPropertiesÎļþ£¬µ«ÊÇÎÒÃÇ¿´µ½µÄ¶¼ÊÇһЩ±àÂë¡£
 Struts1.1b2µÄÀý×ÓÖеı¾¹ú×ÊÔ´Îļþ¾­¹ýUnicode±àÂëµÄ£¬ËùÒÔÄãÈç¹ûÒªºÍËüµÄÔËÐÐÒ»Ñù£¬Ò²±ØÐ뽫ÄãµÄApplicationResources_zh½øÐÐUnicode±àÂë¡£ÓÐÒÔÏÂÁ½ÖÖ·½·¨£º
¢ÙʹÓÃjdkµÄnative2ascii¹¤¾ß¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ