Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

10ÖÖJavaScriptÌØЧʵÀýÈÃÄãµÄÍøÕ¾¸üÎüÒýÈË

    ½ñÌìµÄ»°ÌâÊÇÈçºÎ¸Ä½ø×Ô¼ºÍøÕ¾µÄ½çÃæ»òÌá¸ßÍøÕ¾µÄÊÓ¾õÌåÑ飬´Ó¶øÈÃÓû§¼ÇÒäÓÌС£
    ÎÒÃÇÓÐÈýÖÖÖ÷ÒªµÄ·½·¨(´ÓÄѵ½Ò×):×Ô¼º¶¯ÊÖд½Å±¾;ʹÓÃÀàËÆÓÚjQueryºÍmooToolsµÄJavaScript¿ò¼Ü(¿ÉÒÔÈñàд´úÂë±äµÃ¸üÈÝÒ×Щ);ʹÓÃÄܹ¤×÷ÓÚÏÖÓеÄJavaScript¿ò¼ÜϵÄÌáÇ°Ô¤ÖúõĽű¾»òÄÇÖÖ´ÓÍ·¿ªÊ¼¿ ......

javascript ´òÓ¡Ô¤ÀÀµÄʵÏÖ

Òý×Ô£ºhttp://blog.csdn.net/lsj19830812/archive/2007/10/25/1843578.aspx
 a.jspÊÇÒª´òÓ¡µÄÒ³Ãæ
<html>
<head>
<script language="javascript">
function fmtPrint(printPlace,w,h){
var sarg=new Array();
var sdata=document.all.item(printPlace);
sarg[0]=s ......

JavaScript¼Ì³ÐÏê½â

http://www.cnblogs.com/sanshi/archive/2009/07/08/1519036.html
Ò»¡¢sanshi   javascript ¼Ì³ÐϵÁУº
1¡¢   JavaScript¼Ì³ÐÏê½â£¨Ò»£©    http://www.cnblogs.com/sanshi/archive/2009/07/08/1519036.html
2¡¢JavaScript¼Ì³ÐÏê½â£¨¶þ£©
3¡¢ JavaScript¼Ì³ÐÏê½â£¨Èý£©
4¡¢JavaScript¼Ì³ÐÏê½â£ ......

ADF ÖÐOnClickµÄJavaScriptµÄÖ§³ÖÎÊÌâ

ADF 11g²»ÔÙÖ§³ÖOnclickµÈJavaScript£¬¶øÊDzÉÓÃ<af:clientListener>À´ÊµÏÖÖîÈçɾ³ýijÌõ¼Ç¼µÄÌáʾ¿ò¡£
ʵÏÖ·½Ê½ÈçÏ£º
 
 function confirmDelete() {
if (confirm('Are you sure you want to delete this record?'))
return true;
else
return false;
}

<af:commandLink actionListener="# ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ